	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxl111sf_probe_port_expander
_mxl111sf_probe_port_expander:          ## @mxl111sf_probe_port_expander
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movl	$1, -72(%rbp)
	movl	$0, -68(%rbp)
	leaq	-72(%rbp), %rax
	movq	%rax, -64(%rbp)
	movl	$1, -56(%rbp)
	movl	$0, -48(%rbp)
	leaq	-68(%rbp), %rax
	movq	%rax, -40(%rbp)
	movl	$1, -32(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_mxl_debug
	movl	$56, -52(%rbp)
	movl	$56, -28(%rbp)
	movq	16(%rbx), %rdi
	leaq	-64(%rbp), %rsi
	movl	$2, %edx
	callq	_i2c_transfer
	cmpl	$2, %eax
	je	LBB0_1
## %bb.2:
	movl	$32, -52(%rbp)
	movl	$32, -28(%rbp)
	movq	16(%rbx), %rdi
	leaq	-64(%rbp), %rsi
	movl	$2, %edx
	callq	_i2c_transfer
	cmpl	$2, %eax
	jne	LBB0_3
LBB0_1:
	movl	-52(%rbp), %esi
	movl	%esi, (%rbx)
	movq	_mxl111sf_PCA9534@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_mxl_debug
	jmp	LBB0_4
LBB0_3:
	movl	$255, (%rbx)
	movq	_mxl111sf_gpio_hw@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_mxl_debug
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"()"

	.comm	_mxl111sf_PCA9534,8,3           ## @mxl111sf_PCA9534
L_.str.1:                               ## @.str.1
	.asciz	"found port expander at 0x%02x"

	.comm	_mxl111sf_gpio_hw,8,3           ## @mxl111sf_gpio_hw
L_.str.2:                               ## @.str.2
	.asciz	"using hardware gpio"

	.no_dead_strip	_mxl111sf_probe_port_expander
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxl111sf_probe_port_expander
_mxl111sf_probe_port_expander:          ; @mxl111sf_probe_port_expander
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	mov	w8, #1
	stp	wzr, w8, [sp, #16]
	add	x9, sp, #20
	str	x9, [sp, #24]
	str	w8, [sp, #32]
	str	wzr, [sp, #40]
	add	x9, sp, #16
	str	x9, [sp, #48]
Lloh3:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	str	w8, [sp, #56]
	str	w9, [sp, #64]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_mxl_debug
	mov	w8, #56
	str	w8, [sp, #36]
	str	w8, [sp, #60]
	ldr	x0, [x19, #16]
	add	x1, sp, #24
	mov	w2, #2
	bl	_i2c_transfer
	cmp	w0, #2
	b.eq	LBB0_2
; %bb.1:
	mov	w8, #32
	str	w8, [sp, #36]
	str	w8, [sp, #60]
	ldr	x0, [x19, #16]
	add	x1, sp, #24
	mov	w2, #2
	bl	_i2c_transfer
	cmp	w0, #2
	b.ne	LBB0_3
LBB0_2:
	ldr	w8, [sp, #36]
	str	w8, [x19]
Lloh8:
	adrp	x9, _mxl111sf_PCA9534@GOTPAGE
Lloh9:
	ldr	x9, [x9, _mxl111sf_PCA9534@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	str	x9, [x19, #8]
	str	x8, [sp]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
	mov	w8, #255
	str	w8, [x19]
Lloh13:
	adrp	x8, _mxl111sf_gpio_hw@GOTPAGE
Lloh14:
	ldr	x8, [x8, _mxl111sf_gpio_hw@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_4:
	bl	_mxl_debug
	ldur	x8, [x29, #-24]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"()"

	.comm	_mxl111sf_PCA9534,8,3           ; @mxl111sf_PCA9534
l_.str.1:                               ; @.str.1
	.asciz	"found port expander at 0x%02x"

	.comm	_mxl111sf_gpio_hw,8,3           ; @mxl111sf_gpio_hw
l_.str.2:                               ; @.str.2
	.asciz	"using hardware gpio"

	.no_dead_strip	_mxl111sf_probe_port_expander
.subsections_via_symbols
