	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_send_set_req                   ## -- Begin function send_set_req
	.p2align	4, 0x90
_send_set_req:                          ## @send_set_req
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movaps	%xmm0, -144(%rbp)
	movaps	%xmm0, -160(%rbp)
	movaps	%xmm0, -176(%rbp)
	movq	_POSEIDON_STATE_DISCONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_3
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_3:
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	%rcx, -184(%rbp)                ## 8-byte Spill
	movl	$30, %edi
	callq	_mdelay
	movl	%r14d, %r12d
	shrl	$16, %r12d
	testl	%r14d, %r14d
	cmovel	%r14d, %r12d
	movl	4(%rbx), %r13d
	xorl	%ebx, %ebx
	movl	%r13d, %edi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	movq	_REQ_SET_CMD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r15d
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rdx
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	_USB_RECIP_DEVICE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_USB_CTRL_GET_TIMEOUT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r10d
	subq	$8, %rsp
	leaq	-176(%rbp), %r11
	movzwl	%r12w, %r9d
	movzwl	%r14w, %r8d
	movl	%r13d, %edi
	movl	%eax, %esi
	movl	%r15d, %edx
	pushq	%r10
	pushq	$4
	pushq	%r11
	callq	_usb_control_msg
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	leaq	-176(%rbp), %rsi
	movq	-184(%rbp), %rdi                ## 8-byte Reload
	movl	$4, %edx
	callq	_memcpy
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%ebx, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_POSEIDON_STATE_DISCONNECT,4,2  ## @POSEIDON_STATE_DISCONNECT
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_REQ_SET_CMD,4,2                ## @REQ_SET_CMD
	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.comm	_USB_RECIP_DEVICE,4,2           ## @USB_RECIP_DEVICE
	.comm	_USB_CTRL_GET_TIMEOUT,4,2       ## @USB_CTRL_GET_TIMEOUT
	.comm	_ENXIO,4,2                      ## @ENXIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_send_set_req                   ; -- Begin function send_set_req
	.p2align	2
_send_set_req:                          ; @send_set_req
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #112]
	stp	q0, q0, [sp, #80]
	stp	q0, q0, [sp, #48]
	stp	q0, q0, [sp, #16]
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _POSEIDON_STATE_DISCONNECT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _POSEIDON_STATE_DISCONNECT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_3:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	w0, #30
	bl	_mdelay
	lsr	w8, w20, #16
	cmp	w20, #0
	csel	w23, wzr, w8, eq
	ldr	w22, [x22, #4]
	mov	x0, x22
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
Lloh8:
	adrp	x8, _REQ_SET_CMD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REQ_SET_CMD@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w2, w8, w21
Lloh11:
	adrp	x8, _USB_DIR_IN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _USB_DIR_IN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _USB_TYPE_VENDOR@GOTPAGE
Lloh15:
	ldr	x9, [x9, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _USB_RECIP_DEVICE@GOTPAGE
Lloh18:
	ldr	x10, [x10, _USB_RECIP_DEVICE@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh19:
	ldr	w9, [x10]
	orr	w3, w8, w9
Lloh20:
	adrp	x8, _USB_CTRL_GET_TIMEOUT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _USB_CTRL_GET_TIMEOUT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [sp]
	and	w4, w20, #0xffff
	add	x6, sp, #16
	mov	x0, x22
	mov	x5, x23
	mov	w7, #4
	bl	_usb_control_msg
	cbz	w0, LBB0_7
; %bb.4:
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #4
	bl	_memcpy
	mov	w0, #0
LBB0_5:
	ldur	x8, [x29, #-56]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.6:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_7:
Lloh26:
	adrp	x8, _ENXIO@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_2
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_POSEIDON_STATE_DISCONNECT,4,2  ; @POSEIDON_STATE_DISCONNECT
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_REQ_SET_CMD,4,2                ; @REQ_SET_CMD
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_USB_RECIP_DEVICE,4,2           ; @USB_RECIP_DEVICE
	.comm	_USB_CTRL_GET_TIMEOUT,4,2       ; @USB_CTRL_GET_TIMEOUT
	.comm	_ENXIO,4,2                      ; @ENXIO
.subsections_via_symbols
