	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_expander_write                 ## -- Begin function expander_write
	.p2align	4, 0x90
_expander_write:                        ## @expander_write
	.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
	movl	%edi, %r14d
	movb	%sil, -25(%rbp)
	movl	%edi, -32(%rbp)
	movq	_EXPANDER_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	%edi, %edi
	movq	_I2C_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	leaq	-25(%rbp), %r8
	movl	$4, %ecx
	movl	$1, %r9d
	callq	_TWI_WritePacket
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movzbl	-25(%rbp), %r15d
	movl	%ebx, %edi
	callq	_twi_err_str
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_xprintf
LBB0_2:
	xorl	%eax, %eax
	testl	%ebx, %ebx
	sete	%al
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXPANDER_ADDR,4,2              ## @EXPANDER_ADDR
	.comm	_I2C_TIMEOUT,4,2                ## @I2C_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mcp: set_register %d = %d failed: %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_expander_write                 ; -- Begin function expander_write
	.p2align	2
_expander_write:                        ; @expander_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	strb	w1, [sp, #15]
Lloh0:
	adrp	x8, _EXPANDER_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXPANDER_ADDR@GOTPAGEOFF]
	str	w0, [sp, #8]
Lloh2:
	ldr	w8, [x8]
	lsl	w0, w8, #1
Lloh3:
	adrp	x8, _I2C_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I2C_TIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	add	x4, sp, #15
	mov	w3, #4
	mov	w5, #1
	bl	_TWI_WritePacket
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldrb	w21, [sp, #15]
	mov	x0, x20
	bl	_twi_err_str
	mov	x3, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x21
	bl	_xprintf
LBB0_2:
	cmp	w20, #0
	cset	w0, eq
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EXPANDER_ADDR,4,2              ; @EXPANDER_ADDR
	.comm	_I2C_TIMEOUT,4,2                ; @I2C_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mcp: set_register %d = %d failed: %s\n"

.subsections_via_symbols
