	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_pmac_pcm_open
_snd_pmac_pcm_open:                     ## @snd_pmac_pcm_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	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	(%rdx), %r12
	movl	$0, 24(%r12)
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r13), %ecx
	btl	%ebx, %ecx
	jae	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_snd_pcm_rate_to_rate_bit
	orl	%eax, 24(%r12)
	movl	(%r13), %eax
	jmp	LBB0_4
LBB0_5:
	testl	%eax, %eax
	movl	%eax, %eax
	jle	LBB0_10
## %bb.6:
	movl	4(%r13), %edx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	btl	%ecx, %edx
	jb	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rcx
	cmpl	%ecx, %eax
	jne	LBB0_7
	jmp	LBB0_10
LBB0_8:
	movq	32(%r13), %rdx
	movl	(%rdx,%rcx,4), %ecx
	movl	%ecx, 20(%r12)
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	testl	%eax, %eax
	jle	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	decl	%eax
	movl	4(%r13), %ecx
	btl	%eax, %ecx
	jae	LBB0_10
## %bb.12:
	movq	32(%r13), %rcx
	movl	%eax, %eax
	movl	(%rcx,%rax,4), %eax
	movl	%eax, 16(%r12)
LBB0_13:
	movl	24(%r13), %eax
	movl	%eax, 12(%r12)
	cmpq	$0, 16(%r13)
	je	LBB0_18
## %bb.14:
	cmpl	$0, 8(%r13)
	je	LBB0_16
## %bb.15:
	movl	8(%r12), %eax
	jmp	LBB0_17
LBB0_16:
	movq	_SNDRV_PCM_INFO_HALF_DUPLEX@GOTPCREL(%rip), %rcx
	movl	8(%r12), %eax
	orl	(%rcx), %eax
LBB0_17:
	movq	_SNDRV_PCM_INFO_JOINT_DUPLEX@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 8(%r12)
LBB0_18:
	movq	%r14, 32(%r12)
	movq	%r15, 16(%r14)
	movq	(%r14), %rax
	decq	%rax
	movq	%rax, (%r12)
	movq	_SNDRV_PCM_HW_PARAM_PERIODS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_snd_pcm_hw_constraint_integer
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_PCM_INFO_HALF_DUPLEX,4,2 ## @SNDRV_PCM_INFO_HALF_DUPLEX
	.comm	_SNDRV_PCM_INFO_JOINT_DUPLEX,4,2 ## @SNDRV_PCM_INFO_JOINT_DUPLEX
	.comm	_SNDRV_PCM_HW_PARAM_PERIODS,4,2 ## @SNDRV_PCM_HW_PARAM_PERIODS
	.comm	_SNDRV_PCM_HW_PARAM_FORMAT,4,2  ## @SNDRV_PCM_HW_PARAM_FORMAT
	.comm	_SNDRV_PCM_HW_PARAM_RATE,4,2    ## @SNDRV_PCM_HW_PARAM_RATE
	.comm	_snd_pmac_hw_rule_format,4,2    ## @snd_pmac_hw_rule_format
	.comm	_snd_pmac_hw_rule_rate,4,2      ## @snd_pmac_hw_rule_rate
	.no_dead_strip	_snd_pmac_pcm_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_pmac_pcm_open
_snd_pmac_pcm_open:                     ; @snd_pmac_pcm_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	x21, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x19, [x2]
	str	wzr, [x19, #24]
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x23, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	cmp	x23, w8, sxtw
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x22, #4]
	lsr	w9, w9, w23
	tbz	w9, #0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22, #32]
	ldr	w0, [x8, x23, lsl #2]
	bl	_snd_pcm_rate_to_rate_bit
	ldr	w8, [x19, #24]
	orr	w8, w8, w0
	str	w8, [x19, #24]
	ldr	w8, [x22]
	b	LBB0_2
LBB0_5:
	mov	w9, w8
	cmp	w8, #0
	b.le	LBB0_10
; %bb.6:
	mov	x8, #0
	ldr	w10, [x22, #4]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w11, w10, w8
	tbnz	w11, #0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x8, #1
	cmp	w9, w8
	b.ne	LBB0_7
	b	LBB0_10
LBB0_9:
	ldr	x10, [x22, #32]
	ldr	w8, [x10, x8, lsl #2]
	str	w8, [x19, #20]
LBB0_10:
	mov	x8, x9
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	subs	w8, w8, #1
	b.lt	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w9, [x22, #4]
	lsr	w9, w9, w8
	tbz	w9, #0, LBB0_11
; %bb.13:
	ldr	x9, [x22, #32]
	ldr	w8, [x9, w8, uxtw #2]
	str	w8, [x19, #16]
LBB0_14:
	ldr	w8, [x22, #24]
	str	w8, [x19, #12]
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_19
; %bb.15:
	ldr	w8, [x22, #8]
	cbz	w8, LBB0_17
; %bb.16:
	ldr	w8, [x19, #8]
	b	LBB0_18
LBB0_17:
Lloh0:
	adrp	x8, _SNDRV_PCM_INFO_HALF_DUPLEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNDRV_PCM_INFO_HALF_DUPLEX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
LBB0_18:
Lloh3:
	adrp	x9, _SNDRV_PCM_INFO_JOINT_DUPLEX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SNDRV_PCM_INFO_JOINT_DUPLEX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19, #8]
LBB0_19:
	str	x20, [x19, #32]
	str	x21, [x20, #16]
	ldr	x8, [x20]
	sub	x8, x8, #1
	str	x8, [x19]
Lloh6:
	adrp	x8, _SNDRV_PCM_HW_PARAM_PERIODS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_PERIODS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_pcm_hw_constraint_integer
	mov	w0, #0
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_PCM_INFO_HALF_DUPLEX,4,2 ; @SNDRV_PCM_INFO_HALF_DUPLEX
	.comm	_SNDRV_PCM_INFO_JOINT_DUPLEX,4,2 ; @SNDRV_PCM_INFO_JOINT_DUPLEX
	.comm	_SNDRV_PCM_HW_PARAM_PERIODS,4,2 ; @SNDRV_PCM_HW_PARAM_PERIODS
	.comm	_SNDRV_PCM_HW_PARAM_FORMAT,4,2  ; @SNDRV_PCM_HW_PARAM_FORMAT
	.comm	_SNDRV_PCM_HW_PARAM_RATE,4,2    ; @SNDRV_PCM_HW_PARAM_RATE
	.comm	_snd_pmac_hw_rule_format,4,2    ; @snd_pmac_hw_rule_format
	.comm	_snd_pmac_hw_rule_rate,4,2      ; @snd_pmac_hw_rule_rate
	.no_dead_strip	_snd_pmac_pcm_open
.subsections_via_symbols
