	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_usb_nativeinstruments_boot_quirk
_snd_usb_nativeinstruments_boot_quirk:  ## @snd_usb_nativeinstruments_boot_quirk
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movl	%eax, %r14d
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rax
	movq	_USB_RECIP_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movl	$1, %edi
	callq	_cpu_to_le16
	subq	$8, %rsp
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$175, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	xorl	%r9d, %r9d
	pushq	$1000                           ## imm = 0x3E8
	pushq	$0
	pushq	$0
	callq	_usb_control_msg
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_usb_reset_device
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	%r12d, %eax
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.comm	_USB_RECIP_DEVICE,4,2           ## @USB_RECIP_DEVICE
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_snd_usb_nativeinstruments_boot_quirk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_usb_nativeinstruments_boot_quirk
_snd_usb_nativeinstruments_boot_quirk:  ; @snd_usb_nativeinstruments_boot_quirk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x20, x0
Lloh0:
	adrp	x8, _USB_TYPE_VENDOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _USB_RECIP_DEVICE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _USB_RECIP_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w21, w9, w8
	mov	w0, #1
	bl	_cpu_to_le16
	mov	x4, x0
	mov	w8, #1000
	str	w8, [sp]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #175
	mov	x3, x21
	mov	w5, #0
	mov	x6, #0
	mov	w7, #0
	bl	_usb_control_msg
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_usb_reset_device
Lloh6:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_USB_RECIP_DEVICE,4,2           ; @USB_RECIP_DEVICE
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_snd_usb_nativeinstruments_boot_quirk
.subsections_via_symbols
