	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function af9015_regmap_write
_af9015_regmap_write:                   ## @af9015_regmap_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	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rsi), %eax
	shll	$8, %eax
	orl	4(%rsi), %eax
	movq	(%rdi), %r14
	cltq
	addl	$8, %esi
	addl	$-2, %edx
	movq	_WRITE_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -48(%rbp)
	movl	$0, -44(%rbp)
	movq	%rax, -40(%rbp)
	movq	$0, -32(%rbp)
	movl	%edx, -24(%rbp)
	movl	%esi, -20(%rbp)
	leaq	-48(%rbp), %rsi
	callq	_af9015_ctrl_msg
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_dbg
LBB0_2:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WRITE_MEMORY,4,2               ## @WRITE_MEMORY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed %d\n"

	.no_dead_strip	_af9015_regmap_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function af9015_regmap_write
_af9015_regmap_write:                   ; @af9015_regmap_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	ldr	x19, [x0]
	ldp	w8, w9, [x1]
	orr	w8, w9, w8, lsl #8
	sxtw	x8, w8
	add	w9, w1, #8
	sub	w10, w2, #2
Lloh0:
	adrp	x11, _WRITE_MEMORY@GOTPAGE
Lloh1:
	ldr	x11, [x11, _WRITE_MEMORY@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	stp	w11, wzr, [sp]
	stp	x8, xzr, [sp, #8]
	stp	w10, w9, [sp, #24]
	mov	x1, sp
	bl	_af9015_ctrl_msg
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_dbg
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_WRITE_MEMORY,4,2               ; @WRITE_MEMORY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed %d\n"

	.no_dead_strip	_af9015_regmap_write
.subsections_via_symbols
