	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scx200_acb_create
_scx200_acb_create:                     ## @scx200_acb_create
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_scx200_acb_probe
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_pr_warn
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	8(%r14), %r15
	movq	%r14, %rdi
	callq	_scx200_acb_reset
	movq	%r15, %rdi
	callq	_i2c_add_adapter
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	xorl	%ebx, %ebx
	cmpl	$0, (%r15)
	jne	LBB0_6
## %bb.5:
	movq	_scx200_acb_list_mutex@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_scx200_acb_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, (%r14)
	movq	%r14, (%rax)
	movq	%r15, %rdi
	callq	_mutex_unlock
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"probe failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to register\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_scx200_acb_list_mutex,4,2      ## @scx200_acb_list_mutex
	.comm	_scx200_acb_list,8,3            ## @scx200_acb_list
	.no_dead_strip	_scx200_acb_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scx200_acb_create
_scx200_acb_create:                     ; @scx200_acb_create
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_scx200_acb_probe
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
	b	LBB0_7
LBB0_2:
	add	x20, x19, #8
	mov	x0, x19
	bl	_scx200_acb_reset
	mov	x0, x20
	bl	_i2c_add_adapter
	tbnz	x0, #63, LBB0_6
; %bb.3:
	ldr	w8, [x20]
	cbnz	w8, LBB0_5
; %bb.4:
Lloh2:
	adrp	x20, _scx200_acb_list_mutex@GOTPAGE
Lloh3:
	ldr	x20, [x20, _scx200_acb_list_mutex@GOTPAGEOFF]
	mov	x0, x20
	bl	_mutex_lock
Lloh4:
	adrp	x8, _scx200_acb_list@GOTPAGE
Lloh5:
	ldr	x8, [x8, _scx200_acb_list@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x9, [x19]
	str	x19, [x8]
	mov	x0, x20
	bl	_mutex_unlock
LBB0_5:
	mov	w20, #0
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"probe failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to register\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_scx200_acb_list_mutex,4,2      ; @scx200_acb_list_mutex
	.comm	_scx200_acb_list,8,3            ; @scx200_acb_list
	.no_dead_strip	_scx200_acb_create
.subsections_via_symbols
