	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_emu10k1_ecard_write
_snd_emu10k1_ecard_write:               ## @snd_emu10k1_ecard_write
	.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, %r12d
	movq	_HCFG@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	addq	(%rdi), %r14
	movq	%r14, %rdi
	callq	_inl
	movq	_HOOKN_BIT@GOTPCREL(%rip), %rcx
	movq	_HANDN_BIT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	orl	(%rcx), %edi
	movq	_PULSEN_BIT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rsi
	callq	_outl
	movq	_EC_NUM_CONTROL_BITS@GOTPCREL(%rip), %r15
	cmpw	$0, (%r15)
	je	LBB0_3
## %bb.1:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %ebx
	andl	$1, %ebx
	negl	%ebx
	movq	_PULSEN_BIT@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	shrl	%r12d
	orl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_outl
	movq	_HANDN_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	%ebx, %edi
	movq	%r14, %rsi
	callq	_outl
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_outl
	incl	%r13d
	cmpw	(%r15), %r13w
	jb	LBB0_2
LBB0_3:
	movq	_HOOKN_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	orl	%ebx, %edi
	movq	%r14, %rsi
	callq	_outl
	movl	%ebx, %edi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_outl                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HCFG,8,3                       ## @HCFG
	.comm	_HOOKN_BIT,4,2                  ## @HOOKN_BIT
	.comm	_HANDN_BIT,4,2                  ## @HANDN_BIT
	.comm	_PULSEN_BIT,4,2                 ## @PULSEN_BIT
	.comm	_EC_NUM_CONTROL_BITS,2,1        ## @EC_NUM_CONTROL_BITS
	.no_dead_strip	_snd_emu10k1_ecard_write
.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_write
_snd_emu10k1_ecard_write:               ; @snd_emu10k1_ecard_write
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _HCFG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HCFG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x19, x9, x8
	mov	x0, x19
	bl	_inl
Lloh3:
	adrp	x23, _HOOKN_BIT@GOTPAGE
Lloh4:
	ldr	x23, [x23, _HOOKN_BIT@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh5:
	adrp	x24, _HANDN_BIT@GOTPAGE
Lloh6:
	ldr	x24, [x24, _HANDN_BIT@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w9, w8
Lloh7:
	adrp	x25, _PULSEN_BIT@GOTPAGE
Lloh8:
	ldr	x25, [x25, _PULSEN_BIT@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w8, w8, w9
	bic	w21, w0, w8
	mov	x0, x21
	mov	x1, x19
	bl	_outl
Lloh9:
	adrp	x26, _EC_NUM_CONTROL_BITS@GOTPAGE
Lloh10:
	ldr	x26, [x26, _EC_NUM_CONTROL_BITS@GOTPAGEOFF]
	ldrh	w8, [x26]
	cbz	w8, LBB0_3
; %bb.1:
	mov	w27, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sbfx	w8, w20, #0, #1
	ldr	w9, [x25]
	and	w8, w8, w9
	lsr	w20, w20, #1
	orr	w22, w8, w21
	mov	x0, x22
	mov	x1, x19
	bl	_outl
	ldr	w8, [x24]
	orr	w0, w22, w8
	mov	x1, x19
	bl	_outl
	mov	x0, x22
	mov	x1, x19
	bl	_outl
	add	w27, w27, #1
	ldrh	w8, [x26]
	cmp	w27, w8
	b.lo	LBB0_2
LBB0_3:
	ldr	w8, [x23]
	orr	w0, w8, w21
	mov	x1, x19
	bl	_outl
	mov	x0, x21
	mov	x1, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_outl
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HCFG,8,3                       ; @HCFG
	.comm	_HOOKN_BIT,4,2                  ; @HOOKN_BIT
	.comm	_HANDN_BIT,4,2                  ; @HANDN_BIT
	.comm	_PULSEN_BIT,4,2                 ; @PULSEN_BIT
	.comm	_EC_NUM_CONTROL_BITS,2,1        ; @EC_NUM_CONTROL_BITS
	.no_dead_strip	_snd_emu10k1_ecard_write
.subsections_via_symbols
