	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_hda_ch_mode_put            ## -- Begin function snd_hda_ch_mode_put
	.p2align	4, 0x90
_snd_hda_ch_mode_put:                   ## @snd_hda_ch_mode_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rsi), %rax
	movl	(%rax), %eax
	cmpl	%ecx, %eax
	jae	LBB0_1
## %bb.2:
	shlq	$4, %rax
	movl	(%rdx,%rax), %ecx
	xorl	%ebx, %ebx
	cmpl	%ecx, (%r8)
	je	LBB0_5
## %bb.3:
	movl	%ecx, (%r8)
	movq	8(%rdx,%rax), %rsi
	movl	$1, %ebx
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	callq	_snd_hda_sequence_write_cache
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_hda_ch_mode_put            ; -- Begin function snd_hda_ch_mode_put
	.p2align	2
_snd_hda_ch_mode_put:                   ; @snd_hda_ch_mode_put
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x1]
	ldr	w8, [x8]
	cmp	w8, w3
	b.hs	LBB0_3
; %bb.1:
	ldr	w10, [x4]
	lsl	x9, x8, #4
	ldr	w9, [x2, x9]
	cmp	w10, w9
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
	str	w9, [x4]
	add	x8, x2, x8, lsl #4
	ldr	x1, [x8, #8]
	cbz	x1, LBB0_6
; %bb.5:
	bl	_snd_hda_sequence_write_cache
LBB0_6:
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
