	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_usb_soundblaster_remote_init
_snd_usb_soundblaster_remote_init:      ## @snd_usb_soundblaster_remote_init
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_rc_configs@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	xorl	%r14d, %r14d
	movl	$0, %r13d
	testl	%eax, %eax
	jle	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	movq	(%rdi,%rbx), %rax
	movq	16(%r15), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	callq	_ARRAY_SIZE
	cltq
	addq	$16, %rbx
	cmpq	%rax, %r13
	jl	LBB0_2
LBB0_4:
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r13d
	jge	LBB0_13
## %bb.5:
	movq	(%r12), %rax
	movl	%r13d, %ecx
	shlq	$4, %rcx
	leaq	(%rax,%rcx), %rdx
	movq	%rdx, 40(%r15)
	movl	8(%rax,%rcx), %r12d
	leaq	32(%r15), %rdi
	callq	_init_waitqueue_head
	movq	16(%r15), %rax
	movq	16(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-56(%rbp), %rcx
	xorl	%edx, %edx
	callq	_snd_hwdep_new
	testl	%eax, %eax
	js	LBB0_9
## %bb.6:
	movq	-56(%rbp), %rax
	movl	28(%rax), %edi
	movq	16(%r15), %rax
	movq	16(%rax), %rax
	movq	(%rax), %rcx
	leaq	L_.str.1(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	_SNDRV_HWDEP_IFACE_SB_RC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx
	movl	%eax, 24(%rcx)
	movq	%r15, 16(%rcx)
	movq	_snd_usb_sbrc_hwdep_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rcx)
	movq	_snd_usb_sbrc_hwdep_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rcx)
	movl	$1, (%rcx)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movq	%rax, 24(%r15)
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movl	(%rbx), %esi
	movl	$40, %edi
	callq	_kmalloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rcx
	movq	_USB_TYPE_CLASS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_USB_RECIP_INTERFACE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, (%rax)
	movq	_UAC_GET_MEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rax)
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_cpu_to_le16
	movq	8(%r15), %rcx
	movq	%rax, 24(%rcx)
	xorl	%edi, %edi
	callq	_cpu_to_le16
	movq	8(%r15), %rcx
	movq	%rax, 16(%rcx)
	movl	%r12d, %edi
	callq	_cpu_to_le16
	movq	8(%r15), %rcx
	movq	%rax, 8(%rcx)
	movq	16(%r15), %rax
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	24(%r15), %r12
	movl	8(%rax), %r13d
	movl	%r13d, %edi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	movq	8(%r15), %rcx
	movl	(%r15), %r8d
	movq	_snd_usb_soundblaster_remote_complete@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	pushq	%r15
	pushq	%rbx
	callq	_usb_fill_control_urb
	addq	$16, %rsp
	jmp	LBB0_13
LBB0_9:
	movl	%eax, %r14d
	jmp	LBB0_13
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	24(%r15), %rdi
	callq	_usb_free_urb
	movq	$0, 24(%r15)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
LBB0_12:
	subl	(%rax), %r14d
LBB0_13:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rc_configs,8,3                 ## @rc_configs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SB remote control"

L_.str.1:                               ## @.str.1
	.asciz	"%s remote control"

	.comm	_SNDRV_HWDEP_IFACE_SB_RC,4,2    ## @SNDRV_HWDEP_IFACE_SB_RC
	.comm	_snd_usb_sbrc_hwdep_read,4,2    ## @snd_usb_sbrc_hwdep_read
	.comm	_snd_usb_sbrc_hwdep_poll,4,2    ## @snd_usb_sbrc_hwdep_poll
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
	.comm	_USB_TYPE_CLASS,4,2             ## @USB_TYPE_CLASS
	.comm	_USB_RECIP_INTERFACE,4,2        ## @USB_RECIP_INTERFACE
	.comm	_UAC_GET_MEM,4,2                ## @UAC_GET_MEM
	.comm	_snd_usb_soundblaster_remote_complete,4,2 ## @snd_usb_soundblaster_remote_complete
	.no_dead_strip	_snd_usb_soundblaster_remote_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_usb_soundblaster_remote_init
_snd_usb_soundblaster_remote_init:      ; @snd_usb_soundblaster_remote_init
	.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
Lloh0:
	adrp	x20, _rc_configs@GOTPAGE
Lloh1:
	ldr	x20, [x20, _rc_configs@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x22, #0
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	ldr	x8, [x0, x22]
	ldr	x9, [x19, #16]
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	bl	_ARRAY_SIZE
	add	x22, x22, #16
	cmp	x21, w0, sxtw
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	w21, #0
LBB0_5:
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w21, w0
	b.ge	LBB0_10
; %bb.6:
	ldr	x8, [x20]
	add	x8, x8, w21, uxtw #4
	str	x8, [x19, #40]
	ldr	w20, [x8, #8]
	add	x0, x19, #32
	bl	_init_waitqueue_head
	ldr	x8, [x19, #16]
	ldr	x0, [x8, #16]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #8
	mov	w2, #0
	bl	_snd_hwdep_new
	tbnz	w0, #31, LBB0_13
; %bb.7:
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #28]
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #16]
	ldr	x3, [x8]
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #4
	bl	_snprintf
Lloh6:
	adrp	x8, _SNDRV_HWDEP_IFACE_SB_RC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SNDRV_HWDEP_IFACE_SB_RC@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	str	w8, [x9, #24]
Lloh9:
	adrp	x8, _snd_usb_sbrc_hwdep_read@GOTPAGE
Lloh10:
	ldr	x8, [x8, _snd_usb_sbrc_hwdep_read@GOTPAGEOFF]
	str	x19, [x9, #16]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x9, #8]
Lloh12:
	adrp	x8, _snd_usb_sbrc_hwdep_poll@GOTPAGE
Lloh13:
	ldr	x8, [x8, _snd_usb_sbrc_hwdep_poll@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	mov	w10, #1
	stp	w10, w8, [x9]
Lloh15:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh16:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #0
	bl	_usb_alloc_urb
	str	x0, [x19, #24]
	cbz	x0, LBB0_12
; %bb.8:
	ldr	w1, [x21]
	mov	w0, #40
	bl	_kmalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_11
; %bb.9:
Lloh17:
	adrp	x8, _USB_DIR_IN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _USB_DIR_IN@GOTPAGEOFF]
Lloh19:
	adrp	x9, _USB_TYPE_CLASS@GOTPAGE
Lloh20:
	ldr	x9, [x9, _USB_TYPE_CLASS@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh23:
	adrp	x9, _USB_RECIP_INTERFACE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _USB_RECIP_INTERFACE@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x0]
Lloh26:
	adrp	x8, _UAC_GET_MEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _UAC_GET_MEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [x0, #32]
	mov	w0, #0
	bl	_cpu_to_le16
	ldr	x8, [x19, #8]
	str	x0, [x8, #24]
	mov	w0, #0
	bl	_cpu_to_le16
	ldr	x8, [x19, #8]
	str	x0, [x8, #16]
	mov	x0, x20
	bl	_cpu_to_le16
	ldp	x8, x9, [x19, #8]
	str	x0, [x8, #8]
	ldr	x21, [x19, #24]
	ldr	w22, [x9, #8]
	mov	x0, x22
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x2, x0
	ldr	x3, [x19, #8]
	ldr	w4, [x19]
Lloh29:
	adrp	x8, _snd_usb_soundblaster_remote_complete@GOTPAGE
Lloh30:
	ldr	x8, [x8, _snd_usb_soundblaster_remote_complete@GOTPAGEOFF]
Lloh31:
	ldr	w6, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	x5, x20
	mov	x7, x19
	bl	_usb_fill_control_urb
LBB0_10:
	mov	w0, #0
	b	LBB0_13
LBB0_11:
	ldr	x0, [x19, #24]
	bl	_usb_free_urb
	str	xzr, [x19, #24]
LBB0_12:
Lloh32:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_rc_configs,8,3                 ; @rc_configs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SB remote control"

l_.str.1:                               ; @.str.1
	.asciz	"%s remote control"

	.comm	_SNDRV_HWDEP_IFACE_SB_RC,4,2    ; @SNDRV_HWDEP_IFACE_SB_RC
	.comm	_snd_usb_sbrc_hwdep_read,4,2    ; @snd_usb_sbrc_hwdep_read
	.comm	_snd_usb_sbrc_hwdep_poll,4,2    ; @snd_usb_sbrc_hwdep_poll
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
	.comm	_USB_TYPE_CLASS,4,2             ; @USB_TYPE_CLASS
	.comm	_USB_RECIP_INTERFACE,4,2        ; @USB_RECIP_INTERFACE
	.comm	_UAC_GET_MEM,4,2                ; @UAC_GET_MEM
	.comm	_snd_usb_soundblaster_remote_complete,4,2 ; @snd_usb_soundblaster_remote_complete
	.no_dead_strip	_snd_usb_soundblaster_remote_init
.subsections_via_symbols
