	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_emu10k1_fx8010_register_irq_handler ## -- Begin function snd_emu10k1_fx8010_register_irq_handler
	.p2align	4, 0x90
_snd_emu10k1_fx8010_register_irq_handler: ## @snd_emu10k1_fx8010_register_irq_handler
	.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
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, 24(%rax)
	movb	%r13b, (%rax)
	movq	%r12, 16(%rax)
	movq	$0, 8(%rax)
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, 8(%rbx)
	movq	%rbx, 8(%r15)
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_3:
	movq	%rbx, 8(%r15)
	movq	_snd_emu10k1_fx8010_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_INTE_FXDSPENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_snd_emu10k1_intr_enable
LBB0_5:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:
	movq	%rbx, (%rcx)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_snd_emu10k1_fx8010_interrupt,4,2 ## @snd_emu10k1_fx8010_interrupt
	.comm	_INTE_FXDSPENABLE,4,2           ## @INTE_FXDSPENABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_emu10k1_fx8010_register_irq_handler ; -- Begin function snd_emu10k1_fx8010_register_irq_handler
	.p2align	2
_snd_emu10k1_fx8010_register_irq_handler: ; @snd_emu10k1_fx8010_register_irq_handler
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kmalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	stp	x22, x24, [x0, #16]
	strb	w23, [x0]
	str	xzr, [x0, #8]
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_4
; %bb.2:
	str	x8, [x21, #8]
	str	x21, [x20, #8]
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_4:
Lloh6:
	adrp	x8, _snd_emu10k1_fx8010_interrupt@GOTPAGE
Lloh7:
	ldr	x8, [x8, _snd_emu10k1_fx8010_interrupt@GOTPAGEOFF]
	str	x21, [x20, #8]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x20, #16]
Lloh9:
	adrp	x8, _INTE_FXDSPENABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INTE_FXDSPENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_snd_emu10k1_intr_enable
LBB0_5:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	cbz	x19, LBB0_7
; %bb.6:
	str	x21, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_snd_emu10k1_fx8010_interrupt,4,2 ; @snd_emu10k1_fx8010_interrupt
	.comm	_INTE_FXDSPENABLE,4,2           ; @INTE_FXDSPENABLE
.subsections_via_symbols
