	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sur40_poke
_sur40_poke:                            ## @sur40_poke
	.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, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %r12
	movl	(%rdi), %ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_SUR40_POKE@GOTPCREL(%rip), %rsi
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rdx
	movq	_USB_RECIP_DEVICE@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	orl	(%rdx), %ecx
	movl	(%rsi), %edx
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %r14
	orl	(%r14), %ecx
	subq	$8, %rsp
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$50, %r8d
	movl	$150, %r9d
	pushq	$1000                           ## imm = 0x3E8
	pushq	$0
	pushq	$0
	callq	_usb_control_msg
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movl	$5, %edi
	callq	_msleep
	movl	(%r12), %ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_SUR40_POKE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%r13), %ecx
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	orl	(%r14), %ecx
	subq	$8, %rsp
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$114, %r8d
	movl	%r15d, %r9d
	pushq	$1000                           ## imm = 0x3E8
	pushq	$0
	pushq	$0
	callq	_usb_control_msg
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	movl	$5, %edi
	callq	_msleep
	movl	(%r12), %ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_SUR40_POKE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%r13), %ecx
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	orl	(%r14), %ecx
	subq	$8, %rsp
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$178, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	pushq	$1000                           ## imm = 0x3E8
	pushq	$0
	pushq	$0
	callq	_usb_control_msg
	addq	$32, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	movl	$5, %edi
	callq	_msleep
	jmp	LBB0_6
LBB0_5:
	movl	%eax, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUR40_POKE,4,2                 ## @SUR40_POKE
	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.comm	_USB_RECIP_DEVICE,4,2           ## @USB_RECIP_DEVICE
	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
	.no_dead_strip	_sur40_poke
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sur40_poke
_sur40_poke:                            ; @sur40_poke
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w22, [x0]
	mov	x0, x22
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
Lloh0:
	adrp	x23, _SUR40_POKE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SUR40_POKE@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh2:
	adrp	x24, _USB_TYPE_VENDOR@GOTPAGE
Lloh3:
	ldr	x24, [x24, _USB_TYPE_VENDOR@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh4:
	adrp	x25, _USB_RECIP_DEVICE@GOTPAGE
Lloh5:
	ldr	x25, [x25, _USB_RECIP_DEVICE@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w8, w9, w8
Lloh6:
	adrp	x26, _USB_DIR_OUT@GOTPAGE
Lloh7:
	ldr	x26, [x26, _USB_DIR_OUT@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w3, w8, w9
	mov	w27, #1000
	str	w27, [sp]
	mov	x0, x22
	mov	w4, #50
	mov	w5, #150
	mov	x6, #0
	mov	w7, #0
	bl	_usb_control_msg
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	w0, #5
	bl	_msleep
	ldr	w22, [x20]
	mov	x0, x22
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
	ldr	w2, [x23]
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w8, w9, w8
	ldr	w9, [x26]
	orr	w3, w8, w9
	str	w27, [sp]
	mov	x0, x22
	mov	w4, #114
	mov	x5, x21
	mov	x6, #0
	mov	w7, #0
	bl	_usb_control_msg
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	w0, #5
	bl	_msleep
	ldr	w20, [x20]
	mov	x0, x20
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
	ldr	w2, [x23]
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w8, w9, w8
	ldr	w9, [x26]
	orr	w3, w8, w9
	mov	w8, #1000
	str	w8, [sp]
	mov	x0, x20
	mov	w4, #178
	mov	x5, x19
	mov	x6, #0
	mov	w7, #0
	bl	_usb_control_msg
	mov	x22, x0
	tbnz	w0, #31, LBB0_5
; %bb.3:
	mov	w0, #5
	bl	_msleep
	b	LBB0_5
LBB0_4:
	mov	x22, x0
LBB0_5:
	mov	x0, x22
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SUR40_POKE,4,2                 ; @SUR40_POKE
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_USB_RECIP_DEVICE,4,2           ; @USB_RECIP_DEVICE
	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
	.no_dead_strip	_sur40_poke
.subsections_via_symbols
