	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function oxygen_spdif_hw_params
_oxygen_spdif_hw_params:                ## @oxygen_spdif_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, %r15
	movq	%rdi, %rbx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r12
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_oxygen_hw_params
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	%r12, %r14
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movq	_OXYGEN_SPDIF_CONTROL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_OXYGEN_SPDIF_OUT_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_oxygen_clear_bits32
	movq	_OXYGEN_PLAY_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_oxygen_format
	movq	_OXYGEN_SPDIF_FORMAT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_OXYGEN_SPDIF_FORMAT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_oxygen_write8_masked
	movl	(%r13), %ebx
	movq	%r15, %rdi
	callq	_oxygen_rate
	movq	_OXYGEN_SPDIF_OUT_RATE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_OXYGEN_SPDIF_OUT_RATE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_oxygen_write32_masked
	movq	%r12, %rdi
	callq	_oxygen_update_spdif_source
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	movq	%r12, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OXYGEN_SPDIF_CONTROL,4,2       ## @OXYGEN_SPDIF_CONTROL
	.comm	_OXYGEN_SPDIF_OUT_ENABLE,4,2    ## @OXYGEN_SPDIF_OUT_ENABLE
	.comm	_OXYGEN_PLAY_FORMAT,4,2         ## @OXYGEN_PLAY_FORMAT
	.comm	_OXYGEN_SPDIF_FORMAT_SHIFT,4,2  ## @OXYGEN_SPDIF_FORMAT_SHIFT
	.comm	_OXYGEN_SPDIF_FORMAT_MASK,4,2   ## @OXYGEN_SPDIF_FORMAT_MASK
	.comm	_OXYGEN_SPDIF_OUT_RATE_SHIFT,4,2 ## @OXYGEN_SPDIF_OUT_RATE_SHIFT
	.comm	_OXYGEN_SPDIF_OUT_RATE_MASK,4,2 ## @OXYGEN_SPDIF_OUT_RATE_MASK
	.no_dead_strip	_oxygen_spdif_hw_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function oxygen_spdif_hw_params
_oxygen_spdif_hw_params:                ; @oxygen_spdif_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	x21, x1
	mov	x20, x0
	bl	_snd_pcm_substream_chip
	mov	x19, x0
	mov	x0, x20
	mov	x1, x21
	bl	_oxygen_hw_params
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_mutex_lock
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock_irq
Lloh0:
	adrp	x23, _OXYGEN_SPDIF_CONTROL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _OXYGEN_SPDIF_CONTROL@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh2:
	adrp	x8, _OXYGEN_SPDIF_OUT_ENABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OXYGEN_SPDIF_OUT_ENABLE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_oxygen_clear_bits32
Lloh5:
	adrp	x8, _OXYGEN_PLAY_FORMAT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OXYGEN_PLAY_FORMAT@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_oxygen_format
Lloh8:
	adrp	x8, _OXYGEN_SPDIF_FORMAT_SHIFT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OXYGEN_SPDIF_FORMAT_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	lsl	w2, w0, w8
Lloh11:
	adrp	x8, _OXYGEN_SPDIF_FORMAT_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OXYGEN_SPDIF_FORMAT_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_oxygen_write8_masked
	ldr	w22, [x23]
	mov	x0, x21
	bl	_oxygen_rate
Lloh14:
	adrp	x8, _OXYGEN_SPDIF_OUT_RATE_SHIFT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OXYGEN_SPDIF_OUT_RATE_SHIFT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	lsl	w2, w0, w8
Lloh17:
	adrp	x8, _OXYGEN_SPDIF_OUT_RATE_MASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _OXYGEN_SPDIF_OUT_RATE_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_oxygen_write32_masked
	mov	x0, x19
	bl	_oxygen_update_spdif_source
	mov	x0, x20
	bl	_spin_unlock_irq
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
LBB0_2:
	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	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_OXYGEN_SPDIF_CONTROL,4,2       ; @OXYGEN_SPDIF_CONTROL
	.comm	_OXYGEN_SPDIF_OUT_ENABLE,4,2    ; @OXYGEN_SPDIF_OUT_ENABLE
	.comm	_OXYGEN_PLAY_FORMAT,4,2         ; @OXYGEN_PLAY_FORMAT
	.comm	_OXYGEN_SPDIF_FORMAT_SHIFT,4,2  ; @OXYGEN_SPDIF_FORMAT_SHIFT
	.comm	_OXYGEN_SPDIF_FORMAT_MASK,4,2   ; @OXYGEN_SPDIF_FORMAT_MASK
	.comm	_OXYGEN_SPDIF_OUT_RATE_SHIFT,4,2 ; @OXYGEN_SPDIF_OUT_RATE_SHIFT
	.comm	_OXYGEN_SPDIF_OUT_RATE_MASK,4,2 ; @OXYGEN_SPDIF_OUT_RATE_MASK
	.no_dead_strip	_oxygen_spdif_hw_params
.subsections_via_symbols
