	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gl861_i2c_ctrlmsg_data
_gl861_i2c_ctrlmsg_data:                ## @gl861_i2c_ctrlmsg_data
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	(%rdx), %r15d
	movl	4(%rdx), %esi
	testq	%r8, %r8
	sete	%r12b
	testq	%r9, %r9
	sete	-48(%rbp)                       ## 1-byte Folded Spill
	decq	%rcx
	leaq	L_.str(%rip), %rdi
	xorl	%r13d, %r13d
	movl	%r15d, %edx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_deb_xfer
	cmpq	$2, %r14
	jl	LBB0_3
## %bb.1:
	orb	-48(%rbp), %r12b                ## 1-byte Folded Reload
	je	LBB0_3
## %bb.2:
	movslq	%r15d, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	addq	$4, %rbx
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	shll	$9, %eax
	movslq	%eax, %r14
	movq	_GL861_REQ_I2C_DATA_CTRL_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_GL861_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$20, %edi
	callq	_udelay
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r13d
	movl	%r13d, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	subq	$8, %rsp
	movl	%r13d, %edi
	movl	%eax, %esi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movq	%r14, %r8
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	pushq	$2000                           ## imm = 0x7D0
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	%rbx
	callq	_usb_control_msg
	addq	$72, %rsp
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_deb_xfer
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movl	%r13d, %eax
	addq	$40, %rsp
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"write to PLL:0x%02x via FE reg:0x%02x, len:%d\n"

	.comm	_GL861_REQ_I2C_DATA_CTRL_WRITE,4,2 ## @GL861_REQ_I2C_DATA_CTRL_WRITE
	.comm	_GL861_WRITE,4,2                ## @GL861_WRITE
L_.str.1:                               ## @.str.1
	.asciz	"not supported ctrl-msg, aborting."

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_gl861_i2c_ctrlmsg_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gl861_i2c_ctrlmsg_data
_gl861_i2c_ctrlmsg_data:                ; @gl861_i2c_ctrlmsg_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x3
	mov	x19, x2
	mov	x23, x1
	mov	x22, x0
	ldrsw	x20, [x2]
	cmp	x4, #0
	ccmp	x5, #0, #4, ne
	cset	w25, eq
	ldr	w8, [x19, #4]!
	sub	x21, x3, #1
	stp	x20, x21, [sp, #8]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_deb_xfer
	cmp	x24, #2
	b.lt	LBB0_3
; %bb.1:
	cbz	w25, LBB0_3
; %bb.2:
	lsl	w8, w23, #9
	sxtw	x23, w8
Lloh2:
	adrp	x8, _GL861_REQ_I2C_DATA_CTRL_WRITE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GL861_REQ_I2C_DATA_CTRL_WRITE@GOTPAGEOFF]
Lloh4:
	ldr	w24, [x8]
Lloh5:
	adrp	x8, _GL861_WRITE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GL861_WRITE@GOTPAGEOFF]
Lloh7:
	ldr	w25, [x8]
	mov	w0, #20
	bl	_udelay
	ldr	w22, [x22]
	mov	x0, x22
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
	mov	w8, #2000
	str	w8, [sp]
	mov	x0, x22
	mov	x2, x24
	mov	x3, x25
	mov	x4, x23
	mov	x5, x20
	mov	x6, x19
	mov	x7, x21
	bl	_usb_control_msg
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_deb_xfer
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"write to PLL:0x%02x via FE reg:0x%02x, len:%d\n"

	.comm	_GL861_REQ_I2C_DATA_CTRL_WRITE,4,2 ; @GL861_REQ_I2C_DATA_CTRL_WRITE
	.comm	_GL861_WRITE,4,2                ; @GL861_WRITE
l_.str.1:                               ; @.str.1
	.asciz	"not supported ctrl-msg, aborting."

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_gl861_i2c_ctrlmsg_data
.subsections_via_symbols
