	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_em28xx_capture_open
_snd_em28xx_capture_open:               ## @snd_em28xx_capture_open
	.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
	movq	%rdi, %r14
	callq	_snd_pcm_substream_chip
	movq	%rax, %r13
	movq	(%r14), %r15
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	testq	%r13, %r13
	je	LBB0_1
## %bb.2:
	movq	$0, 32(%r13)
	movq	%r13, %r12
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	%r13, %rdi
	callq	_em28xx_audio_analog_set
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:
	movq	_snd_em28xx_hw_capture@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	cmpl	$0, (%r13)
	jne	LBB0_6
## %bb.4:
	cmpq	$0, 8(%r13)
	jne	LBB0_6
## %bb.5:
	movl	$7, (%r13)
	leaq	L_.str.2(%rip), %rdi
	callq	_dprintk
	movl	24(%r13), %edi
	xorl	%esi, %esi
	movl	$7, %edx
	callq	_usb_set_interface
LBB0_6:
	incq	8(%r13)
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	_SNDRV_PCM_HW_PARAM_PERIODS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_snd_pcm_hw_constraint_integer
	movq	%r14, 16(%r13)
	movq	%r13, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	callq	_em28xx_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_7:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_mutex_unlock
	leaq	L_.str.3(%rip), %rdi
	callq	_em28xx_err
LBB0_8:
	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,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"opening device and trying to acquire exclusive lock\n"

L_.str.1:                               ## @.str.1
	.asciz	"BUG: em28xx can't find device struct. Can't proceed with open\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_snd_em28xx_hw_capture,4,2      ## @snd_em28xx_hw_capture
L_.str.2:                               ## @.str.2
	.asciz	"changing alternate number to 7\n"

	.comm	_SNDRV_PCM_HW_PARAM_PERIODS,4,2 ## @SNDRV_PCM_HW_PARAM_PERIODS
L_.str.3:                               ## @.str.3
	.asciz	"Error while configuring em28xx mixer\n"

	.no_dead_strip	_snd_em28xx_capture_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_em28xx_capture_open
_snd_em28xx_capture_open:               ; @snd_em28xx_capture_open
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_snd_pcm_substream_chip
	mov	x20, x0
	ldr	x21, [x19]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	cbz	x20, LBB0_6
; %bb.1:
	str	xzr, [x20, #32]
	add	x22, x20, #4
	mov	x0, x22
	bl	_mutex_lock
	mov	x0, x20
	bl	_em28xx_audio_analog_set
	tbnz	w0, #31, LBB0_7
; %bb.2:
Lloh2:
	adrp	x8, _snd_em28xx_hw_capture@GOTPAGE
Lloh3:
	ldr	x8, [x8, _snd_em28xx_hw_capture@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x21, #8]
	ldr	w8, [x20]
	cbnz	w8, LBB0_5
; %bb.3:
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_5
; %bb.4:
	mov	w8, #7
	str	w8, [x20]
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_dprintk
	ldr	w0, [x20, #24]
	mov	w1, #0
	mov	w2, #7
	bl	_usb_set_interface
LBB0_5:
	ldr	x8, [x20, #8]
	add	x8, x8, #1
	str	x8, [x20, #8]
	mov	x0, x22
	bl	_mutex_unlock
Lloh7:
	adrp	x8, _SNDRV_PCM_HW_PARAM_PERIODS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_PERIODS@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_snd_pcm_hw_constraint_integer
	mov	w23, #0
	str	x19, [x20, #16]
	str	x20, [x21]
	b	LBB0_8
LBB0_6:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_em28xx_err
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_8
LBB0_7:
	mov	x23, x0
	mov	x0, x22
	bl	_mutex_unlock
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_em28xx_err
LBB0_8:
	mov	x0, x23
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"opening device and trying to acquire exclusive lock\n"

l_.str.1:                               ; @.str.1
	.asciz	"BUG: em28xx can't find device struct. Can't proceed with open\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_snd_em28xx_hw_capture,4,2      ; @snd_em28xx_hw_capture
l_.str.2:                               ; @.str.2
	.asciz	"changing alternate number to 7\n"

	.comm	_SNDRV_PCM_HW_PARAM_PERIODS,4,2 ; @SNDRV_PCM_HW_PARAM_PERIODS
l_.str.3:                               ; @.str.3
	.asciz	"Error while configuring em28xx mixer\n"

	.no_dead_strip	_snd_em28xx_capture_open
.subsections_via_symbols
