	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sur40_set_preprocessor
_sur40_set_preprocessor:                ## @sur40_set_preprocessor
	.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
	cmpl	$2, %esi
	jl	LBB0_2
## %bb.1:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_2:
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	(%rdi), %r15d
	movl	%r15d, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rdx
	movq	_USB_RECIP_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	_SUR40_POKE@GOTPCREL(%rip), %r13
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	(%r13), %edx
	movslq	%ebx, %r12
	leaq	l___const.sur40_set_preprocessor.setting_07(%rip), %rsi
	movl	(%rsi,%r12,4), %r9d
	subq	$8, %rsp
	movl	%r15d, %edi
	movl	%eax, %esi
	movl	$7, %r8d
	pushq	$1000                           ## imm = 0x3E8
	pushq	$0
	pushq	$0
	callq	_usb_control_msg
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	$5, %edi
	callq	_msleep
	movl	(%r14), %ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movl	(%r13), %edx
	movq	_USB_RECIP_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	leaq	L___const.sur40_set_preprocessor.setting_17(%rip), %rsi
	movl	(%rsi,%r12,4), %r9d
	subq	$8, %rsp
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$23, %r8d
	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.5:
	movl	$5, %edi
	callq	_msleep
	jmp	LBB0_6
LBB0_3:
	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
	.section	__TEXT,__const
	.p2align	2                               ## @__const.sur40_set_preprocessor.setting_07
l___const.sur40_set_preprocessor.setting_07:
	.long	1                               ## 0x1
	.long	0                               ## 0x0

	.section	__TEXT,__literal8,8byte_literals
	.p2align	2                               ## @__const.sur40_set_preprocessor.setting_17
L___const.sur40_set_preprocessor.setting_17:
	.long	133                             ## 0x85
	.long	128                             ## 0x80

	.comm	_ERANGE,4,2                     ## @ERANGE
	.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_set_preprocessor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sur40_set_preprocessor
_sur40_set_preprocessor:                ; @sur40_set_preprocessor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cmp	w1, #2
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ERANGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_6
LBB0_2:
	mov	x20, x1
	mov	x19, x0
	ldr	w21, [x0]
	mov	x0, x21
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
Lloh3:
	adrp	x22, _SUR40_POKE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SUR40_POKE@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh5:
	adrp	x23, _USB_TYPE_VENDOR@GOTPAGE
Lloh6:
	ldr	x23, [x23, _USB_TYPE_VENDOR@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh7:
	adrp	x24, _USB_RECIP_DEVICE@GOTPAGE
Lloh8:
	ldr	x24, [x24, _USB_RECIP_DEVICE@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w9, w8
Lloh9:
	adrp	x25, _USB_DIR_OUT@GOTPAGE
Lloh10:
	ldr	x25, [x25, _USB_DIR_OUT@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w3, w8, w9
Lloh11:
	adrp	x8, l___const.sur40_set_preprocessor.setting_07@PAGE
Lloh12:
	add	x8, x8, l___const.sur40_set_preprocessor.setting_07@PAGEOFF
	ldr	w5, [x8, w20, sxtw #2]
	mov	w26, #1000
	str	w26, [sp]
	mov	x0, x21
	mov	w4, #7
	mov	x6, #0
	mov	w7, #0
	bl	_usb_control_msg
	tbnz	w0, #31, LBB0_5
; %bb.3:
	sxtw	x20, w20
	mov	w0, #5
	bl	_msleep
	ldr	w19, [x19]
	mov	x0, x19
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
	ldr	w2, [x22]
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w3, w8, w9
Lloh13:
	adrp	x8, l___const.sur40_set_preprocessor.setting_17@PAGE
Lloh14:
	add	x8, x8, l___const.sur40_set_preprocessor.setting_17@PAGEOFF
	ldr	w5, [x8, x20, lsl #2]
	str	w26, [sp]
	mov	x0, x19
	mov	w4, #23
	mov	x6, #0
	mov	w7, #0
	bl	_usb_control_msg
	mov	x21, x0
	tbnz	w0, #31, LBB0_6
; %bb.4:
	mov	w0, #5
	bl	_msleep
	b	LBB0_6
LBB0_5:
	mov	x21, x0
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.sur40_set_preprocessor.setting_07
l___const.sur40_set_preprocessor.setting_07:
	.long	1                               ; 0x1
	.long	0                               ; 0x0

	.section	__TEXT,__literal8,8byte_literals
	.p2align	2                               ; @__const.sur40_set_preprocessor.setting_17
l___const.sur40_set_preprocessor.setting_17:
	.long	133                             ; 0x85
	.long	128                             ; 0x80

	.comm	_ERANGE,4,2                     ; @ERANGE
	.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_set_preprocessor
.subsections_via_symbols
