	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcm_analog_in_open
_pcm_analog_in_open:                    ## @pcm_analog_in_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	%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
	callq	_snd_pcm_substream_chip
	movq	%rax, %r14
	leaq	L_.str(%rip), %rdi
	callq	_DE_ACT
	movq	%r14, %rdi
	callq	_num_analog_busses_in
	subq	8(%rbx), %rax
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_pcm_open
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movl	(%rbx), %edi
	movq	_SNDRV_PCM_HW_PARAM_CHANNELS@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_hw_rule_capture_channels_by_format@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_SNDRV_PCM_HW_PARAM_FORMAT@GOTPCREL(%rip), %r12
	movl	(%r12), %r9d
	movl	$-1, (%rsp)
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	callq	_snd_pcm_hw_rule_add
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	movl	(%rbx), %edi
	movl	(%r12), %edx
	movq	_hw_rule_capture_format_by_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r15), %r9d
	movl	$-1, (%rsp)
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	callq	_snd_pcm_hw_rule_add
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:
	movq	%r14, %rbx
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_atomic_inc
	movq	%rbx, %rdi
	callq	_atomic_read
	cmpl	$2, %eax
	jl	LBB0_6
## %bb.4:
	cmpq	$0, 16(%r14)
	je	LBB0_6
## %bb.5:
	movq	$0, 8(%r14)
LBB0_6:
	movq	%rbx, %rdi
	callq	_atomic_read
	movslq	(%r14), %rdi
	callq	_DE_HWP
	xorl	%eax, %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pcm_analog_in_open\n"

	.comm	_SNDRV_PCM_HW_PARAM_CHANNELS,4,2 ## @SNDRV_PCM_HW_PARAM_CHANNELS
	.comm	_hw_rule_capture_channels_by_format,4,2 ## @hw_rule_capture_channels_by_format
	.comm	_SNDRV_PCM_HW_PARAM_FORMAT,4,2  ## @SNDRV_PCM_HW_PARAM_FORMAT
	.comm	_hw_rule_capture_format_by_channels,4,2 ## @hw_rule_capture_format_by_channels
	.no_dead_strip	_pcm_analog_in_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcm_analog_in_open
_pcm_analog_in_open:                    ; @pcm_analog_in_open
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
	bl	_snd_pcm_substream_chip
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DE_ACT
	mov	x0, x19
	bl	_num_analog_busses_in
	ldr	x8, [x20, #8]
	sub	x1, x0, x8
	mov	x0, x20
	bl	_pcm_open
	tbnz	w0, #31, LBB0_7
; %bb.1:
	ldr	w0, [x20]
Lloh2:
	adrp	x21, _SNDRV_PCM_HW_PARAM_CHANNELS@GOTPAGE
Lloh3:
	ldr	x21, [x21, _SNDRV_PCM_HW_PARAM_CHANNELS@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh4:
	adrp	x8, _hw_rule_capture_channels_by_format@GOTPAGE
Lloh5:
	ldr	x8, [x8, _hw_rule_capture_channels_by_format@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
Lloh7:
	adrp	x22, _SNDRV_PCM_HW_PARAM_FORMAT@GOTPAGE
Lloh8:
	ldr	x22, [x22, _SNDRV_PCM_HW_PARAM_FORMAT@GOTPAGEOFF]
	ldr	w5, [x22]
	mov	w1, #0
	mov	x4, #0
	mov	w6, #-1
	bl	_snd_pcm_hw_rule_add
	tbnz	w0, #31, LBB0_7
; %bb.2:
	ldr	w0, [x20]
	ldr	w2, [x22]
Lloh9:
	adrp	x8, _hw_rule_capture_format_by_channels@GOTPAGE
Lloh10:
	ldr	x8, [x8, _hw_rule_capture_format_by_channels@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	ldr	w5, [x21]
	mov	w1, #0
	mov	x4, #0
	mov	w6, #-1
	bl	_snd_pcm_hw_rule_add
	tbnz	w0, #31, LBB0_7
; %bb.3:
	add	x20, x19, #4
	mov	x0, x20
	bl	_atomic_inc
	mov	x0, x20
	bl	_atomic_read
	cmp	w0, #2
	b.lt	LBB0_6
; %bb.4:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
; %bb.5:
	str	xzr, [x19, #8]
LBB0_6:
	mov	x0, x20
	bl	_atomic_read
	ldrsw	x0, [x19]
	bl	_DE_HWP
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pcm_analog_in_open\n"

	.comm	_SNDRV_PCM_HW_PARAM_CHANNELS,4,2 ; @SNDRV_PCM_HW_PARAM_CHANNELS
	.comm	_hw_rule_capture_channels_by_format,4,2 ; @hw_rule_capture_channels_by_format
	.comm	_SNDRV_PCM_HW_PARAM_FORMAT,4,2  ; @SNDRV_PCM_HW_PARAM_FORMAT
	.comm	_hw_rule_capture_format_by_channels,4,2 ; @hw_rule_capture_format_by_channels
	.no_dead_strip	_pcm_analog_in_open
.subsections_via_symbols
