	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function af9015_write_reg_i2c
_af9015_write_reg_i2c:                  ## @af9015_write_reg_i2c
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rcx, -32(%rbp)
	callq	_d_to_priv
	movq	_WRITE_I2C@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	%rcx, -80(%rbp)
	movl	%ebx, -72(%rbp)
	movl	%r15d, -68(%rbp)
	movl	$1, -64(%rbp)
	movq	$1, -56(%rbp)
	movl	$1, -48(%rbp)
	leaq	-32(%rbp), %rcx
	movl	%ecx, -44(%rbp)
	movl	$0, -40(%rbp)
	movq	(%rax), %rax
	cmpq	%rbx, (%rax)
	je	LBB0_2
## %bb.1:
	cmpq	%rbx, 8(%rax)
	jne	LBB0_3
LBB0_2:
	movl	$3, -48(%rbp)
LBB0_3:
	leaq	-80(%rbp), %rsi
	movq	%r14, %rdi
	callq	_af9015_ctrl_msg
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WRITE_I2C,4,2                  ## @WRITE_I2C
	.no_dead_strip	_af9015_write_reg_i2c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function af9015_write_reg_i2c
_af9015_write_reg_i2c:                  ; @af9015_write_reg_i2c
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	stur	x3, [x29, #-40]
	bl	_d_to_priv
Lloh0:
	adrp	x8, _WRITE_I2C@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WRITE_I2C@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	str	x8, [sp, #8]
	stp	w20, w21, [sp, #16]
	mov	w8, #1
	str	w8, [sp, #24]
	str	x8, [sp, #32]
	sub	x9, x29, #40
	stp	w8, w9, [sp, #40]
	str	wzr, [sp, #48]
	ldr	x8, [x0]
	ldr	x9, [x8]
	cmp	x9, x20
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x8, #8]
	cmp	x8, x20
	b.ne	LBB0_3
LBB0_2:
	mov	w8, #3
	str	w8, [sp, #40]
LBB0_3:
	add	x1, sp, #8
	mov	x0, x19
	bl	_af9015_ctrl_msg
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WRITE_I2C,4,2                  ; @WRITE_I2C
	.no_dead_strip	_af9015_write_reg_i2c
.subsections_via_symbols
