	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_value
_set_value:                             ## @set_value
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	8(%rax), %r13
	movq	_DEBUG_USBREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	callq	_gig_dbg
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	subq	$8, %rsp
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	$18, %edx
	movl	$65, %ecx
	movl	$15, %r8d
	xorl	%r9d, %r9d
	pushq	$2000                           ## imm = 0x7D0
	pushq	$0
	pushq	$0
	callq	_usb_control_msg
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	subq	$8, %rsp
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	movl	$65, %ecx
	movl	%r12d, %r8d
	xorl	%r9d, %r9d
	pushq	$2000                           ## imm = 0x7D0
	pushq	$0
	pushq	$0
	callq	_usb_control_msg
	addq	$32, %rsp
	movl	%eax, %r12d
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	movl	%r12d, %edx
	negl	%edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_4:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	(%r14), %rbx
	subq	$8, %rsp
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	$25, %edx
	movl	$65, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$2000                           ## imm = 0x7D0
	pushq	$6
	pushq	(%rbx)
	callq	_usb_control_msg
	addq	$32, %rsp
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:
	movl	%r14d, %edx
	negl	%edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_6:
	movl	%r14d, %ebx
	sarl	$31, %ebx
	andl	%r14d, %ebx
	testl	%r12d, %r12d
	cmovsl	%r12d, %ebx
	jmp	LBB0_7
LBB0_1:
	movl	%eax, %ebx
	movl	%eax, %edx
	negl	%edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_USBREQ,4,2               ## @DEBUG_USBREQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"request %02x (%04x)"

L_.str.1:                               ## @.str.1
	.asciz	"error %d on request 0x12\n"

L_.str.2:                               ## @.str.2
	.asciz	"error %d on request 0x%02x\n"

L_.str.3:                               ## @.str.3
	.asciz	"error %d on request 0x19\n"

	.no_dead_strip	_set_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_value
_set_value:                             ; @set_value
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x19, [x8, #8]
Lloh0:
	adrp	x8, _DEBUG_USBREQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG_USBREQ@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x22
	bl	_gig_dbg
	mov	x0, x19
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
	mov	w24, #2000
	str	w24, [sp]
	mov	x0, x19
	mov	w2, #18
	mov	w3, #65
	mov	w4, #15
	mov	w5, #0
	mov	x6, #0
	mov	w7, #0
	bl	_usb_control_msg
	tbnz	w0, #31, LBB0_6
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
	str	w24, [sp]
	mov	x0, x19
	mov	x2, x21
	mov	w3, #65
	mov	x4, x22
	mov	w5, #0
	mov	x6, #0
	mov	w7, #0
	bl	_usb_control_msg
	mov	x22, x0
	tbz	w0, #31, LBB0_3
; %bb.2:
	neg	w2, w22
	str	x21, [sp]
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_3:
	mov	x0, x19
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
	ldr	x8, [x20]
	ldr	x6, [x8]
	mov	w8, #2000
	str	w8, [sp]
	mov	x0, x19
	mov	w2, #25
	mov	w3, #65
	mov	w4, #0
	mov	w5, #0
	mov	w7, #6
	bl	_usb_control_msg
	mov	x20, x0
	tbz	w0, #31, LBB0_5
; %bb.4:
	neg	w2, w20
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_5:
	cmp	w20, #0
	csel	w8, w20, wzr, lt
	cmp	w22, #0
	csel	w23, w22, w8, lt
	b	LBB0_7
LBB0_6:
	mov	x23, x0
	neg	w2, w0
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_7:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_USBREQ,4,2               ; @DEBUG_USBREQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"request %02x (%04x)"

l_.str.1:                               ; @.str.1
	.asciz	"error %d on request 0x12\n"

l_.str.2:                               ; @.str.2
	.asciz	"error %d on request 0x%02x\n"

l_.str.3:                               ; @.str.3
	.asciz	"error %d on request 0x19\n"

	.no_dead_strip	_set_value
.subsections_via_symbols
