	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_expander_read                  ## -- Begin function expander_read
	.p2align	4, 0x90
_expander_read:                         ## @expander_read
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_expander_status@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_EXPANDER_ADDR@GOTPCREL(%rip), %r12
	movq	_I2C_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	(%r12), %edi
	callq	_i2c_start
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movq	%r15, %rdi
	callq	_i2c_write
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movq	_I2C_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	(%r12), %edi
	callq	_i2c_rep_start
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_i2c_readNak
	movq	%rax, (%r14)
LBB0_6:
	xorl	%eax, %eax
	callq	_i2c_stop
	jmp	LBB0_7
LBB0_1:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_expander_status,8,3            ## @expander_status
	.comm	_EXPANDER_ADDR,4,2              ## @EXPANDER_ADDR
	.comm	_I2C_WRITE,4,2                  ## @I2C_WRITE
	.comm	_I2C_READ,4,2                   ## @I2C_READ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_expander_read                  ; -- Begin function expander_read
	.p2align	2
_expander_read:                         ; @expander_read
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x8, _expander_status@GOTPAGE
Lloh1:
	ldr	x8, [x8, _expander_status@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.1:
	mov	x19, x1
	mov	x21, x0
Lloh3:
	adrp	x22, _EXPANDER_ADDR@GOTPAGE
Lloh4:
	ldr	x22, [x22, _EXPANDER_ADDR@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh5:
	adrp	x9, _I2C_WRITE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _I2C_WRITE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_i2c_start
	mov	x20, x0
	cbnz	x0, LBB0_5
; %bb.2:
	mov	x0, x21
	bl	_i2c_write
	mov	x20, x0
	cbnz	x0, LBB0_5
; %bb.3:
	ldr	w8, [x22]
Lloh8:
	adrp	x9, _I2C_READ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _I2C_READ@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_i2c_rep_start
	mov	x20, x0
	cbnz	x0, LBB0_5
; %bb.4:
	bl	_i2c_readNak
	str	x0, [x19]
LBB0_5:
	bl	_i2c_stop
	b	LBB0_7
LBB0_6:
	mov	x20, #0
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_expander_status,8,3            ; @expander_status
	.comm	_EXPANDER_ADDR,4,2              ; @EXPANDER_ADDR
	.comm	_I2C_WRITE,4,2                  ; @I2C_WRITE
	.comm	_I2C_READ,4,2                   ; @I2C_READ
.subsections_via_symbols
