	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_emu10k1_ecard_setadcgain
_snd_emu10k1_ecard_setadcgain:          ## @snd_emu10k1_ecard_setadcgain
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_EC_TRIM_CSN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	notl	%esi
	andl	(%rdi), %esi
	callq	_snd_emu10k1_ecard_write
	movl	(%rbx), %esi
	notl	%esi
	andl	(%r15), %esi
	movq	%r15, %rdi
	callq	_snd_emu10k1_ecard_write
	movl	$32768, %r13d                   ## imm = 0x8000
	movl	$32768, %r12d                   ## imm = 0x8000
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_EC_TRIM_SDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_EC_TRIM_CSN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%eax, %ecx
	notl	%ecx
	andl	(%r15), %ecx
	movl	%r13d, %ebx
	andl	%r14d, %ebx
	cmovnel	%eax, %ebx
	orl	%ecx, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_snd_emu10k1_ecard_write
	movq	_EC_TRIM_SCLK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	%ebx, %esi
	movq	%r15, %rdi
	callq	_snd_emu10k1_ecard_write
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_snd_emu10k1_ecard_write
	shrl	%r12d
	cmpl	$1, %r13d
	movl	%r12d, %r13d
	ja	LBB0_1
## %bb.2:
	movl	(%r15), %esi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_emu10k1_ecard_write        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EC_TRIM_CSN,4,2                ## @EC_TRIM_CSN
	.comm	_EC_TRIM_SDATA,4,2              ## @EC_TRIM_SDATA
	.comm	_EC_TRIM_SCLK,4,2               ## @EC_TRIM_SCLK
	.no_dead_strip	_snd_emu10k1_ecard_setadcgain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_emu10k1_ecard_setadcgain
_snd_emu10k1_ecard_setadcgain:          ; @snd_emu10k1_ecard_setadcgain
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x22, _EC_TRIM_CSN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EC_TRIM_CSN@GOTPAGEOFF]
	ldr	w9, [x22]
	bic	w1, w8, w9
	bl	_snd_emu10k1_ecard_write
	ldr	w8, [x19]
	ldr	w9, [x22]
	bic	w1, w8, w9
	mov	x0, x19
	bl	_snd_emu10k1_ecard_write
	mov	w23, #32768
Lloh2:
	adrp	x24, _EC_TRIM_SDATA@GOTPAGE
Lloh3:
	ldr	x24, [x24, _EC_TRIM_SDATA@GOTPAGEOFF]
Lloh4:
	adrp	x25, _EC_TRIM_SCLK@GOTPAGE
Lloh5:
	ldr	x25, [x25, _EC_TRIM_SCLK@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	ldr	w9, [x22]
	ldr	w10, [x24]
	orr	w9, w10, w9
	bic	w8, w8, w9
	tst	w23, w20
	csel	w9, wzr, w10, eq
	orr	w21, w8, w9
	mov	x0, x19
	mov	x1, x21
	bl	_snd_emu10k1_ecard_write
	ldr	w8, [x25]
	orr	w1, w21, w8
	mov	x0, x19
	bl	_snd_emu10k1_ecard_write
	mov	x0, x19
	mov	x1, x21
	bl	_snd_emu10k1_ecard_write
	lsr	w8, w23, #1
	cmp	w23, #1
	mov	x23, x8
	b.hi	LBB0_1
; %bb.2:
	ldr	w1, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_snd_emu10k1_ecard_write
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EC_TRIM_CSN,4,2                ; @EC_TRIM_CSN
	.comm	_EC_TRIM_SDATA,4,2              ; @EC_TRIM_SDATA
	.comm	_EC_TRIM_SCLK,4,2               ; @EC_TRIM_SCLK
	.no_dead_strip	_snd_emu10k1_ecard_setadcgain
.subsections_via_symbols
