	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_card_saa7134_capture_open
_snd_card_saa7134_capture_open:         ## @snd_card_saa7134_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, %r12
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_snd_pcm_substream_chip
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	8(%rax), %r13
	leaq	12(%r13), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r13)
	movq	32(%r13), %rax
	movl	(%rax), %eax
	leal	-4(%rax), %ecx
	decl	%eax
	xorl	%ebx, %ebx
	cmpl	$-3, %ecx
	cmovbl	%ebx, %eax
	movl	%eax, 8(%r13)
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	8(%r15), %rax
	movq	%rax, 16(%r14)
	movq	%r14, %rdi
	addq	$8, %rdi
	callq	_spin_lock_init
	movq	%r12, (%r14)
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r14, 8(%r12)
	movq	_snd_card_saa7134_runtime_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	_snd_card_saa7134_capture@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	cmpq	$0, (%r13)
	je	LBB0_6
## %bb.5:
	movl	$1, (%r15)
	movq	$0, (%r13)
	movq	%r13, %rdi
	callq	_saa7134_tvaudio_setmute
LBB0_6:
	movq	_SNDRV_PCM_HW_PARAM_PERIODS@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_snd_pcm_hw_constraint_integer
	testl	%eax, %eax
	js	LBB0_7
## %bb.10:
	movl	(%r14), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$2, %ecx
	callq	_snd_pcm_hw_constraint_step
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_7:
	movl	%eax, %ebx
LBB0_8:
	movl	%ebx, %eax
LBB0_9:
	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	"BUG: saa7134 can't find device struct. Can't proceed with open\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_snd_card_saa7134_runtime_free,4,2 ## @snd_card_saa7134_runtime_free
	.comm	_snd_card_saa7134_capture,4,2   ## @snd_card_saa7134_capture
	.comm	_SNDRV_PCM_HW_PARAM_PERIODS,4,2 ## @SNDRV_PCM_HW_PARAM_PERIODS
	.no_dead_strip	_snd_card_saa7134_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_card_saa7134_capture_open
_snd_card_saa7134_capture_open:         ; @snd_card_saa7134_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	x22, x0
	ldr	x19, [x0]
	bl	_snd_pcm_substream_chip
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	ldr	x21, [x0, #8]
	add	x23, x21, #12
	mov	x0, x23
	bl	_mutex_lock
	stp	xzr, xzr, [x21, #16]
	ldr	x8, [x21, #32]
	ldr	w8, [x8]
	sub	w9, w8, #4
	sub	w8, w8, #1
	cmn	w9, #3
	csel	w8, wzr, w8, lo
	str	w8, [x21, #8]
	mov	x0, x23
	bl	_mutex_unlock
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x23, x0
	ldr	x8, [x20, #8]
	str	x8, [x0, #16]
	add	x0, x0, #8
	bl	_spin_lock_init
	str	x22, [x23]
	str	x23, [x19, #8]
Lloh3:
	adrp	x8, _snd_card_saa7134_runtime_free@GOTPAGE
Lloh4:
	ldr	x8, [x8, _snd_card_saa7134_runtime_free@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _snd_card_saa7134_capture@GOTPAGE
Lloh7:
	ldr	x9, [x9, _snd_card_saa7134_capture@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
	ldr	x8, [x21]
	cbz	x8, LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x20]
	str	xzr, [x21]
	mov	x0, x21
	bl	_saa7134_tvaudio_setmute
LBB0_4:
Lloh9:
	adrp	x20, _SNDRV_PCM_HW_PARAM_PERIODS@GOTPAGE
Lloh10:
	ldr	x20, [x20, _SNDRV_PCM_HW_PARAM_PERIODS@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_snd_pcm_hw_constraint_integer
	tbnz	w0, #31, LBB0_9
; %bb.5:
	ldr	w2, [x20]
	mov	x0, x19
	mov	w1, #0
	mov	w3, #2
	bl	_snd_pcm_hw_constraint_step
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	b	LBB0_9
LBB0_6:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BUG: saa7134 can't find device struct. Can't proceed with open\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_snd_card_saa7134_runtime_free,4,2 ; @snd_card_saa7134_runtime_free
	.comm	_snd_card_saa7134_capture,4,2   ; @snd_card_saa7134_capture
	.comm	_SNDRV_PCM_HW_PARAM_PERIODS,4,2 ; @SNDRV_PCM_HW_PARAM_PERIODS
	.no_dead_strip	_snd_card_saa7134_capture_open
.subsections_via_symbols
