	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function magician_capture_hw_params
_magician_capture_hw_params:            ## @magician_capture_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r15
	movq	_SND_SOC_DAIFMT_MSB@GOTPCREL(%rip), %r14
	movq	_SND_SOC_DAIFMT_NB_NF@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	orl	(%r14), %esi
	movq	8(%rax), %rdi
	movq	_SND_SOC_DAIFMT_CBS_CFS@GOTPCREL(%rip), %r12
	orl	(%r12), %esi
	callq	_snd_soc_dai_set_fmt
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movl	(%rbx), %esi
	orl	(%r14), %esi
	orl	(%r12), %esi
	movq	%r15, %rdi
	callq	_snd_soc_dai_set_fmt
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	movq	_PXA2XX_I2S_SYSCLK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SND_SOC_CLOCK_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_snd_soc_dai_set_sysclk
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SND_SOC_DAIFMT_MSB,4,2         ## @SND_SOC_DAIFMT_MSB
	.comm	_SND_SOC_DAIFMT_NB_NF,4,2       ## @SND_SOC_DAIFMT_NB_NF
	.comm	_SND_SOC_DAIFMT_CBS_CFS,4,2     ## @SND_SOC_DAIFMT_CBS_CFS
	.comm	_PXA2XX_I2S_SYSCLK,4,2          ## @PXA2XX_I2S_SYSCLK
	.comm	_SND_SOC_CLOCK_OUT,4,2          ## @SND_SOC_CLOCK_OUT
	.no_dead_strip	_magician_capture_hw_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function magician_capture_hw_params
_magician_capture_hw_params:            ; @magician_capture_hw_params
	.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
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldp	x19, x0, [x8]
Lloh0:
	adrp	x20, _SND_SOC_DAIFMT_MSB@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SND_SOC_DAIFMT_MSB@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh2:
	adrp	x21, _SND_SOC_DAIFMT_NB_NF@GOTPAGE
Lloh3:
	ldr	x21, [x21, _SND_SOC_DAIFMT_NB_NF@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w8, w9, w8
Lloh4:
	adrp	x22, _SND_SOC_DAIFMT_CBS_CFS@GOTPAGE
Lloh5:
	ldr	x22, [x22, _SND_SOC_DAIFMT_CBS_CFS@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w1, w8, w9
	bl	_snd_soc_dai_set_fmt
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	w8, [x20]
	ldr	w9, [x21]
	orr	w8, w9, w8
	ldr	w9, [x22]
	orr	w1, w8, w9
	mov	x0, x19
	bl	_snd_soc_dai_set_fmt
	tbnz	w0, #31, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _PXA2XX_I2S_SYSCLK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PXA2XX_I2S_SYSCLK@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _SND_SOC_CLOCK_OUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SND_SOC_CLOCK_OUT@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_snd_soc_dai_set_sysclk
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_3:
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SND_SOC_DAIFMT_MSB,4,2         ; @SND_SOC_DAIFMT_MSB
	.comm	_SND_SOC_DAIFMT_NB_NF,4,2       ; @SND_SOC_DAIFMT_NB_NF
	.comm	_SND_SOC_DAIFMT_CBS_CFS,4,2     ; @SND_SOC_DAIFMT_CBS_CFS
	.comm	_PXA2XX_I2S_SYSCLK,4,2          ; @PXA2XX_I2S_SYSCLK
	.comm	_SND_SOC_CLOCK_OUT,4,2          ; @SND_SOC_CLOCK_OUT
	.no_dead_strip	_magician_capture_hw_params
.subsections_via_symbols
