	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_usb_audigy2nx_boot_quirk
_snd_usb_audigy2nx_boot_quirk:          ## @snd_usb_audigy2nx_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	$1, -40(%rbp)
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rdx
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	orl	(%rdx), %ecx
	movq	_USB_RECIP_OTHER@GOTPCREL(%rip), %r12
	orl	(%r12), %ecx
	leaq	-40(%rbp), %r10
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$42, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$1
	pushq	%r10
	callq	_snd_usb_ctl_msg
	addq	$16, %rsp
	cmpq	$0, -40(%rbp)
	jne	LBB0_2
## %bb.1:
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rdx
	movl	(%r15), %ecx
	orl	(%rdx), %ecx
	orl	(%r12), %ecx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$41, %edx
	movl	$1, %r8d
	movl	$2000, %r9d                     ## imm = 0x7D0
	pushq	$0
	pushq	$0
	callq	_snd_usb_ctl_msg
	addq	$16, %rsp
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_2:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.comm	_USB_RECIP_OTHER,4,2            ## @USB_RECIP_OTHER
	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_snd_usb_audigy2nx_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_audigy2nx_boot_quirk
_snd_usb_audigy2nx_boot_quirk:          ; @snd_usb_audigy2nx_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	w8, #1
	str	x8, [sp, #8]
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
Lloh0:
	adrp	x8, _USB_DIR_IN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_DIR_IN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x20, _USB_TYPE_VENDOR@GOTPAGE
Lloh4:
	ldr	x20, [x20, _USB_TYPE_VENDOR@GOTPAGEOFF]
	ldr	w9, [x20]
	orr	w8, w9, w8
Lloh5:
	adrp	x21, _USB_RECIP_OTHER@GOTPAGE
Lloh6:
	ldr	x21, [x21, _USB_RECIP_OTHER@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w3, w8, w9
	add	x6, sp, #8
	mov	x0, x19
	mov	w2, #42
	mov	w4, #0
	mov	w5, #0
	mov	w7, #1
	bl	_snd_usb_ctl_msg
	mov	w0, #0
	ldr	x8, [sp, #8]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
Lloh7:
	adrp	x8, _USB_DIR_OUT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _USB_DIR_OUT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	ldr	w9, [x21]
	orr	w3, w8, w9
	mov	x0, x19
	mov	w2, #41
	mov	w4, #1
	mov	w5, #2000
	mov	x6, #0
	mov	w7, #0
	bl	_snd_usb_ctl_msg
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh12:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_USB_RECIP_OTHER,4,2            ; @USB_RECIP_OTHER
	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_snd_usb_audigy2nx_boot_quirk
.subsections_via_symbols
