	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_ice1712_gpio_put           ## -- Begin function snd_ice1712_gpio_put
	.p2align	4, 0x90
_snd_ice1712_gpio_put:                  ## @snd_ice1712_gpio_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), %eax
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %ecx
	shll	$7, %ecx
	sarl	$31, %ecx
	movzbl	%al, %ebx
	andl	%ebx, %ecx
	movq	(%r15), %rax
	xorl	%r12d, %r12d
	cmpq	$0, (%rax)
	cmovnel	%ebx, %r12d
	xorl	%ecx, %r12d
	movq	%r14, %rdi
	callq	_snd_ice1712_save_gpio_status
	movq	%r14, %rdi
	callq	_snd_ice1712_gpio_read
	movl	%eax, %r15d
	notl	%ebx
	andl	%eax, %ebx
	orl	%r12d, %ebx
	cmpl	%ebx, %eax
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_snd_ice1712_gpio_write
LBB0_4:
	xorl	%r12d, %r12d
	cmpl	%ebx, %r15d
	setne	%r12b
	movq	%r14, %rdi
	callq	_snd_ice1712_restore_gpio_status
	jmp	LBB0_5
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_5:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EPERM,4,2                      ## @EPERM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_ice1712_gpio_put           ; -- Begin function snd_ice1712_gpio_put
	.p2align	2
_snd_ice1712_gpio_put:                  ; @snd_ice1712_gpio_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
	ldr	w8, [x21]
	tbnz	w8, #31, LBB0_4
; %bb.1:
	mov	x19, x0
	lsl	w9, w8, #7
	and	w21, w8, #0xff
	and	w8, w21, w9, asr #31
	ldr	x9, [x20]
	ldr	x9, [x9]
	cmp	x9, #0
	csel	w9, wzr, w21, eq
	eor	w22, w9, w8
	bl	_snd_ice1712_save_gpio_status
	mov	x0, x19
	bl	_snd_ice1712_gpio_read
	mov	x20, x0
	bic	w8, w0, w21
	orr	w21, w22, w8
	cmp	w0, w21
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x21
	bl	_snd_ice1712_gpio_write
LBB0_3:
	cmp	w20, w21
	cset	w20, ne
	mov	x0, x19
	bl	_snd_ice1712_restore_gpio_status
	b	LBB0_5
LBB0_4:
Lloh0:
	adrp	x8, _EPERM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EPERM,4,2                      ; @EPERM
.subsections_via_symbols
