	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_card_saa7134_hw_params
_snd_card_saa7134_hw_params:            ## @snd_card_saa7134_hw_params
	.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	%rsi, %rbx
	movq	%rdi, %r15
	callq	_snd_pcm_substream_chip
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_params_period_bytes
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_params_periods
	movl	%eax, %r13d
	leal	-65537(%r12), %eax
	cmpl	$-65282, %eax                   ## imm = 0xFFFF00FE
	jbe	LBB0_1
## %bb.2:
	cmpl	$3, %r13d
	jbe	LBB0_1
## %bb.3:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	%r13d, %r15d
	imull	%r12d, %r15d
	cmpl	$1048577, %r15d                 ## imm = 0x100001
	jb	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	(%r14), %r14
	cmpl	%r13d, (%r14)
	jne	LBB0_6
## %bb.5:
	xorl	%ebx, %ebx
	cmpl	%r12d, 4(%r14)
	je	LBB0_18
LBB0_6:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_8
## %bb.7:
	movl	40(%r14), %edi
	leaq	24(%r14), %rsi
	callq	_saa7134_pgtable_free
	movq	%r14, %rdi
	callq	_saa7134_alsa_dma_unmap
	movq	%r14, %rdi
	callq	_dsp_buffer_free
	movq	(%rbx), %rax
	movq	$0, 16(%rax)
LBB0_8:
	movl	%r13d, (%r14)
	movl	%r12d, 4(%r14)
	movl	%r15d, 8(%r14)
	movq	%r14, %rdi
	callq	_dsp_buffer_init
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	movq	$0, (%r14)
	movl	$0, 8(%r14)
	jmp	LBB0_18
LBB0_10:
	movq	%r14, %rdi
	callq	_saa7134_alsa_dma_map
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_13:
	movl	40(%r14), %edi
	leaq	24(%r14), %r12
	movq	%r12, %rsi
	callq	_saa7134_pgtable_alloc
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_saa7134_alsa_dma_unmap
LBB0_12:
	movq	%r14, %rdi
	callq	_dsp_buffer_free
	jmp	LBB0_18
LBB0_15:
	movl	40(%r14), %edi
	movl	28(%r14), %ecx
	movl	32(%r14), %edx
	xorl	%ebx, %ebx
	movq	%r12, %rsi
	xorl	%r8d, %r8d
	callq	_saa7134_pgtable_build
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%eax, %r13d
	movl	40(%r14), %edi
	movq	%r12, %rsi
	callq	_saa7134_pgtable_free
	movq	%r14, %rdi
	callq	_saa7134_alsa_dma_unmap
	movq	%r14, %rdi
	callq	_dsp_buffer_free
	movl	%r13d, %ebx
	jmp	LBB0_18
LBB0_17:
	movq	16(%r14), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	%rax, 16(%rcx)
	movl	8(%r14), %eax
	movl	%eax, (%rcx)
	movq	$0, 8(%rcx)
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_snd_card_saa7134_hw_params
.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_hw_params
_snd_card_saa7134_hw_params:            ; @snd_card_saa7134_hw_params
	.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, x1
	mov	x19, x0
	bl	_snd_pcm_substream_chip
	mov	x20, x0
	mov	x0, x22
	bl	_params_period_bytes
	mov	x21, x0
	mov	x0, x22
	bl	_params_periods
	mov	w8, #-65537
	mov	w9, #-65282
	add	w8, w21, w8
	cmp	w8, w9
	b.ls	LBB0_3
; %bb.1:
	mov	x22, x0
	cmp	w0, #3
	b.ls	LBB0_3
; %bb.2:
	mul	w23, w22, w21
	cmp	w23, #256, lsl #12              ; =1048576
	b.ls	LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_4:
	mov	x0, x21
	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
LBB0_5:
	ldr	x20, [x20]
	ldr	w8, [x20]
	cmp	w8, w22
	b.ne	LBB0_8
; %bb.6:
	ldr	w8, [x20, #4]
	cmp	w8, w21
	b.ne	LBB0_8
; %bb.7:
	mov	w21, #0
	b	LBB0_4
LBB0_8:
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	w0, [x20, #40]
	add	x1, x20, #24
	bl	_saa7134_pgtable_free
	mov	x0, x20
	bl	_saa7134_alsa_dma_unmap
	mov	x0, x20
	bl	_dsp_buffer_free
	ldr	x8, [x19]
	str	xzr, [x8, #16]
LBB0_10:
	stp	w22, w21, [x20]
	str	w23, [x20, #8]
	mov	x0, x20
	bl	_dsp_buffer_init
	cbz	w0, LBB0_12
; %bb.11:
	mov	x21, x0
	str	xzr, [x20]
	str	wzr, [x20, #8]
	b	LBB0_4
LBB0_12:
	mov	x0, x20
	bl	_saa7134_alsa_dma_map
	cbz	w0, LBB0_14
; %bb.13:
	mov	x21, x0
	b	LBB0_19
LBB0_14:
	ldr	w0, [x20, #40]
	add	x22, x20, #24
	mov	x1, x22
	bl	_saa7134_pgtable_alloc
	cbz	w0, LBB0_16
; %bb.15:
	mov	x21, x0
	b	LBB0_18
LBB0_16:
	ldr	w0, [x20, #40]
	ldp	w3, w2, [x20, #28]
	mov	x1, x22
	mov	w4, #0
	bl	_saa7134_pgtable_build
	mov	x21, x0
	cbz	w0, LBB0_20
; %bb.17:
	ldr	w0, [x20, #40]
	mov	x1, x22
	bl	_saa7134_pgtable_free
LBB0_18:
	mov	x0, x20
	bl	_saa7134_alsa_dma_unmap
LBB0_19:
	mov	x0, x20
	bl	_dsp_buffer_free
	b	LBB0_4
LBB0_20:
	ldr	x8, [x20, #16]
	ldr	x9, [x19]
	ldr	w10, [x20, #8]
	str	w10, [x9]
	stp	xzr, x8, [x9, #8]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_snd_card_saa7134_hw_params
.subsections_via_symbols
