	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ice1712_6fire_control_put
_snd_ice1712_6fire_control_put:         ## @snd_ice1712_6fire_control_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r14
	movl	(%rbx), %ebx
	movq	_PCF9554_REG_OUTPUT@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rax, %rdi
	callq	_snd_ice1712_6fire_read_pca
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	$1, %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	movl	%eax, %ecx
	btrl	%ebx, %ecx
	movq	(%r15), %rsi
	movl	%eax, %edi
	btsl	%ebx, %edi
	cmpq	$0, (%rsi)
	cmovel	%ecx, %edi
	shll	$23, %ebx
	sarl	$31, %ebx
	andl	%edx, %ebx
	xorl	%edi, %ebx
	xorl	%ecx, %ecx
	cmpl	%ebx, %eax
	je	LBB0_4
## %bb.3:
	movl	(%r12), %esi
	movzbl	%bl, %edx
	movq	%r14, %rdi
	callq	_snd_ice1712_6fire_write_pca
	movl	$1, %ecx
	jmp	LBB0_4
LBB0_1:
	movl	%eax, %ecx
LBB0_4:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCF9554_REG_OUTPUT,4,2         ## @PCF9554_REG_OUTPUT
	.no_dead_strip	_snd_ice1712_6fire_control_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ice1712_6fire_control_put
_snd_ice1712_6fire_control_put:         ; @snd_ice1712_6fire_control_put
	.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
	mov	x20, x1
	mov	x21, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	w22, [x21]
Lloh0:
	adrp	x21, _PCF9554_REG_OUTPUT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PCF9554_REG_OUTPUT@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_snd_ice1712_6fire_read_pca
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	w8, #1
	lsl	w8, w8, w22
	bic	w9, w0, w8
	ldr	x10, [x20]
	ldr	x10, [x10]
	orr	w11, w0, w8
	cmp	x10, #0
	csel	w9, w9, w11, eq
	lsl	w10, w22, #23
	and	w8, w8, w10, asr #31
	eor	w8, w9, w8
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	ldr	w1, [x21]
	and	w2, w8, #0xff
	mov	x0, x19
	bl	_snd_ice1712_6fire_write_pca
	mov	w0, #1
LBB0_4:
	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	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PCF9554_REG_OUTPUT,4,2         ; @PCF9554_REG_OUTPUT
	.no_dead_strip	_snd_ice1712_6fire_control_put
.subsections_via_symbols
