	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usbtv_audio_init               ## -- Begin function usbtv_audio_init
	.p2align	4, 0x90
_usbtv_audio_init:                      ## @usbtv_audio_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	addq	$28, %rdi
	movq	_snd_usbtv_trigger@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	24(%r15), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	16(%r15), %rdi
	addq	$16, %rdi
	movq	_SNDRV_DEFAULT_IDX1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdx
	leaq	-40(%rbp), %r9
	xorl	%r8d, %r8d
	callq	_snd_card_new
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	-40(%rbp), %rax
	movl	8(%rax), %edi
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax), %rsi
	movl	$4, %edx
	callq	_strscpy
	movq	-40(%rbp), %rax
	movl	4(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
	movq	-40(%rbp), %rax
	movl	(%rax), %edi
	movq	16(%r15), %rax
	movq	8(%rax), %rcx
	movl	(%rcx), %ecx
	movl	(%rax), %r8d
	leaq	L_.str.1(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	-40(%rbp), %rdi
	movq	8(%r15), %rsi
	callq	_snd_card_set_dev
	movq	-40(%rbp), %rdi
	movq	%rdi, (%r15)
	leaq	L_.str.2(%rip), %rsi
	xorl	%r14d, %r14d
	leaq	-48(%rbp), %r9
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	_snd_pcm_new
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	-48(%rbp), %rax
	movl	16(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
	movq	-48(%rbp), %rax
	movq	$0, 8(%rax)
	movq	%r15, (%rax)
	movq	-48(%rbp), %rdi
	movq	_SNDRV_PCM_STREAM_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_snd_usbtv_pcm_ops@GOTPCREL(%rip), %rdx
	callq	_snd_pcm_set_ops
	movq	-48(%rbp), %r12
	movq	_SNDRV_DMA_TYPE_CONTINUOUS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_snd_dma_continuous_data
	movq	_USBTV_AUDIO_BUFFER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movl	%ecx, %r8d
	callq	_snd_pcm_lib_preallocate_pages_for_all
	movq	-40(%rbp), %rdi
	callq	_snd_card_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
	jmp	LBB0_6
LBB0_1:
	movl	%eax, %r14d
	jmp	LBB0_6
LBB0_3:
	movl	%eax, %ebx
LBB0_5:
	movq	$0, (%r15)
	movq	-40(%rbp), %rdi
	callq	_snd_card_free
	movl	%ebx, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_snd_usbtv_trigger,4,2          ## @snd_usbtv_trigger
	.comm	_SNDRV_DEFAULT_IDX1,4,2         ## @SNDRV_DEFAULT_IDX1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"usbtv"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
L_.str.1:                               ## @.str.1
	.asciz	"USBTV Audio at bus %d device %d"

L_.str.2:                               ## @.str.2
	.asciz	"USBTV Audio"

L_.str.3:                               ## @.str.3
	.asciz	"USBTV Audio Input"

	.comm	_SNDRV_PCM_STREAM_CAPTURE,4,2   ## @SNDRV_PCM_STREAM_CAPTURE
	.comm	_snd_usbtv_pcm_ops,4,2          ## @snd_usbtv_pcm_ops
	.comm	_SNDRV_DMA_TYPE_CONTINUOUS,4,2  ## @SNDRV_DMA_TYPE_CONTINUOUS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_USBTV_AUDIO_BUFFER,4,2         ## @USBTV_AUDIO_BUFFER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usbtv_audio_init               ; -- Begin function usbtv_audio_init
	.p2align	2
_usbtv_audio_init:                      ; @usbtv_audio_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
	add	x0, x0, #28
Lloh0:
	adrp	x8, _snd_usbtv_trigger@GOTPAGE
Lloh1:
	ldr	x8, [x8, _snd_usbtv_trigger@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #24
	mov	w1, #0
	bl	_atomic_set
	ldr	x8, [x19, #16]
	add	x0, x8, #16
Lloh3:
	adrp	x8, _SNDRV_DEFAULT_IDX1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SNDRV_DEFAULT_IDX1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	add	x5, sp, #8
	mov	w4, #0
	bl	_snd_card_new
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #8]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x1, [x8]
	mov	w2, #4
	bl	_strscpy
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #4]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strscpy
	ldr	x8, [sp, #8]
	ldr	w0, [x8]
	ldr	x8, [x19, #16]
	ldr	x9, [x8, #8]
	ldr	w3, [x9]
	ldr	w4, [x8]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	ldr	x0, [sp, #8]
	ldr	x1, [x19, #8]
	bl	_snd_card_set_dev
	ldr	x0, [sp, #8]
	str	x0, [x19]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x5, sp
	mov	w2, #0
	mov	w3, #0
	mov	w4, #1
	bl	_snd_pcm_new
	tbnz	w0, #31, LBB0_4
; %bb.2:
	ldr	x8, [sp]
	ldr	w0, [x8, #16]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #4
	bl	_strscpy
	ldr	x8, [sp]
	stp	x19, xzr, [x8]
	ldr	x0, [sp]
Lloh19:
	adrp	x8, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x2, _snd_usbtv_pcm_ops@GOTPAGE
Lloh23:
	ldr	x2, [x2, _snd_usbtv_pcm_ops@GOTPAGEOFF]
	bl	_snd_pcm_set_ops
	ldr	x20, [sp]
Lloh24:
	adrp	x8, _SNDRV_DMA_TYPE_CONTINUOUS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SNDRV_DMA_TYPE_CONTINUOUS@GOTPAGEOFF]
Lloh26:
	ldr	w21, [x8]
Lloh27:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_snd_dma_continuous_data
	mov	x2, x0
Lloh30:
	adrp	x8, _USBTV_AUDIO_BUFFER@GOTPAGE
Lloh31:
	ldr	x8, [x8, _USBTV_AUDIO_BUFFER@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	x4, x3
	bl	_snd_pcm_lib_preallocate_pages_for_all
	ldr	x0, [sp, #8]
	bl	_snd_card_register
	mov	x20, x0
	cbnz	w0, LBB0_5
	b	LBB0_6
LBB0_3:
	mov	x20, x0
	b	LBB0_6
LBB0_4:
	mov	x20, x0
LBB0_5:
	str	xzr, [x19]
	ldr	x0, [sp, #8]
	bl	_snd_card_free
LBB0_6:
	mov	x0, x20
	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 AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_snd_usbtv_trigger,4,2          ; @snd_usbtv_trigger
	.comm	_SNDRV_DEFAULT_IDX1,4,2         ; @SNDRV_DEFAULT_IDX1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"usbtv"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
l_.str.1:                               ; @.str.1
	.asciz	"USBTV Audio at bus %d device %d"

l_.str.2:                               ; @.str.2
	.asciz	"USBTV Audio"

l_.str.3:                               ; @.str.3
	.asciz	"USBTV Audio Input"

	.comm	_SNDRV_PCM_STREAM_CAPTURE,4,2   ; @SNDRV_PCM_STREAM_CAPTURE
	.comm	_snd_usbtv_pcm_ops,4,2          ; @snd_usbtv_pcm_ops
	.comm	_SNDRV_DMA_TYPE_CONTINUOUS,4,2  ; @SNDRV_DMA_TYPE_CONTINUOUS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_USBTV_AUDIO_BUFFER,4,2         ; @USBTV_AUDIO_BUFFER
.subsections_via_symbols
