	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcxhr_audio_src_put
_pcxhr_audio_src_put:                   ## @pcxhr_audio_src_put
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_snd_kcontrol_chip
	movq	%rax, %r15
	movq	8(%rax), %rdi
	cmpq	$0, 24(%rdi)
	je	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	cmpq	$0, 16(%rdi)
	setne	%al
	addl	%eax, %eax
	addl	$3, %eax
	jmp	LBB0_3
LBB0_1:
	movl	$2, %eax
LBB0_3:
	movq	(%r14), %rcx
	cmpl	%eax, (%rcx)
	jge	LBB0_4
## %bb.5:
	callq	_mutex_lock
	movq	(%r14), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	cmpl	%eax, (%r15)
	je	LBB0_10
## %bb.6:
	movl	%eax, (%r15)
	movq	8(%r15), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_hr222_set_audio_source
	jmp	LBB0_9
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_8:
	movq	%r15, %rdi
	callq	_pcxhr_set_audio_source
LBB0_9:
	movl	$1, %ebx
LBB0_10:
	movq	8(%r15), %rdi
	callq	_mutex_unlock
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_pcxhr_audio_src_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcxhr_audio_src_put
_pcxhr_audio_src_put:                   ; @pcxhr_audio_src_put
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	x0, [x0, #8]
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x0, #16]
	cmp	x8, #0
	mov	w8, #5
	mov	w9, #3
	csel	w8, w9, w8, eq
	b	LBB0_3
LBB0_2:
	mov	w8, #2
LBB0_3:
	ldr	x9, [x20]
	ldr	w9, [x9]
	cmp	w9, w8
	b.ge	LBB0_6
; %bb.4:
	bl	_mutex_lock
	ldr	w9, [x19]
	ldr	x8, [x20]
	ldr	w8, [x8]
	cmp	w9, w8
	b.ne	LBB0_7
; %bb.5:
	mov	w20, #0
	b	LBB0_11
LBB0_6:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_12
LBB0_7:
	str	w8, [x19]
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_hr222_set_audio_source
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_pcxhr_set_audio_source
LBB0_10:
	mov	w20, #1
LBB0_11:
	ldr	x0, [x19, #8]
	bl	_mutex_unlock
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_pcxhr_audio_src_put
.subsections_via_symbols
