	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function af9035_wr_regs
_af9035_wr_regs:                        ## @af9035_wr_regs
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r12
	movq	_MAX_XFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shlq	$2, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdi
	movl	%r15d, %eax
	shrl	$16, %eax
	movzbl	%al, %eax
	movq	_CMD_MEM_WR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -88(%rbp)
	movl	%eax, -84(%rbp)
	leal	6(%r13), %eax
	cltq
	movq	%rax, -80(%rbp)
	movq	%rdi, -72(%rbp)
	movq	$0, -64(%rbp)
	cmpq	%rax, %rbx
	jae	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_dev_warn
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	movl	%r15d, %edx
	movl	%r13d, (%rdi)
	movq	$2, 4(%rdi)
	movl	$0, 12(%rdi)
	movzbl	%dh, %eax
	movl	%eax, 16(%rdi)
	movzbl	%dl, %eax
	movl	%eax, 20(%rdi)
	addq	$24, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_memcpy
	leaq	-88(%rbp), %rsi
	movq	%r14, %rdi
	callq	_af9035_ctrl_msg
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_XFER_SIZE,4,2              ## @MAX_XFER_SIZE
	.comm	_CMD_MEM_WR,4,2                 ## @CMD_MEM_WR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c wr: len=%d is too big!\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_af9035_wr_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function af9035_wr_regs
lCPI0_0:
	.long	2                               ; 0x2
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_af9035_wr_regs:                        ; @af9035_wr_regs
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	sub	sp, sp, #48
	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]
	ldr	x0, [x0]
Lloh3:
	adrp	x8, _MAX_XFER_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_XFER_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x10, x10, #0x7fffffff0
	sub	x9, x9, x10
	mov	sp, x9
	ubfx	w10, w1, #16, #8
Lloh8:
	adrp	x11, _CMD_MEM_WR@GOTPAGE
Lloh9:
	ldr	x11, [x11, _CMD_MEM_WR@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	stp	w11, w10, [x29, #-56]
	add	w10, w3, #6
	sxtw	x10, w10
	stp	x10, x9, [x29, #-48]
	stur	xzr, [x29, #-32]
	cmp	x8, x10
	b.hs	LBB0_2
; %bb.1:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x3
	bl	_dev_warn
Lloh13:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	str	w3, [x9]
Lloh16:
	adrp	x8, lCPI0_0@PAGE
Lloh17:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x9, #4]
	ubfx	w8, w1, #8, #8
	stp	wzr, w8, [x9, #12]
	and	w8, w1, #0xff
	str	w8, [x9, #20]
	add	x0, x9, #24
	mov	x1, x2
	mov	x2, x3
	bl	_memcpy
	sub	x1, x29, #56
	mov	x0, x19
	bl	_af9035_ctrl_msg
LBB0_3:
	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_5
; %bb.4:
	sub	sp, x29, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdr	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_XFER_SIZE,4,2              ; @MAX_XFER_SIZE
	.comm	_CMD_MEM_WR,4,2                 ; @CMD_MEM_WR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c wr: len=%d is too big!\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_af9035_wr_regs
.subsections_via_symbols
