	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_als300_set_irq_flag
_snd_als300_set_irq_flag:               ## @snd_als300_set_irq_flag
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	16(%rdi), %edi
	movq	_MISC_CONTROL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_snd_als300_gcr_read
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_snd_als300_dbgcallenter
	movl	$1, %eax
	cmpl	$5, (%rbx)
	jg	LBB0_2
## %bb.1:
	movq	8(%rbx), %rcx
	movq	_DEVICE_ALS300_PLUS@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	sete	%al
LBB0_2:
	movq	_IRQ_ENABLE@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpl	%r15d, (%rcx)
	sete	%sil
	movq	_IRQ_SET_BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, %ecx
	orl	%r14d, %ecx
	notl	%edx
	andl	%r14d, %edx
	cmpl	%esi, %eax
	cmovel	%ecx, %edx
	movl	16(%rbx), %edi
	movl	(%r12), %esi
	callq	_snd_als300_gcr_write
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_als300_dbgcallleave        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MISC_CONTROL,4,2               ## @MISC_CONTROL
	.comm	_DEVICE_ALS300_PLUS,8,3         ## @DEVICE_ALS300_PLUS
	.comm	_IRQ_ENABLE,4,2                 ## @IRQ_ENABLE
	.comm	_IRQ_SET_BIT,4,2                ## @IRQ_SET_BIT
	.no_dead_strip	_snd_als300_set_irq_flag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_als300_set_irq_flag
_snd_als300_set_irq_flag:               ; @snd_als300_set_irq_flag
	.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	x19, x0
	ldr	w0, [x0, #16]
Lloh0:
	adrp	x22, _MISC_CONTROL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MISC_CONTROL@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_snd_als300_gcr_read
	mov	x21, x0
	bl	_snd_als300_dbgcallenter
	ldr	w8, [x19]
	cmp	w8, #5
	b.le	LBB0_2
; %bb.1:
	mov	w8, #1
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _DEVICE_ALS300_PLUS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DEVICE_ALS300_PLUS@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
LBB0_3:
Lloh5:
	adrp	x9, _IRQ_ENABLE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IRQ_ENABLE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w9, w20
	cset	w9, eq
Lloh8:
	adrp	x10, _IRQ_SET_BIT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _IRQ_SET_BIT@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	orr	w11, w10, w21
	bic	w10, w21, w10
	cmp	w8, w9
	csel	w2, w11, w10, eq
	ldr	w0, [x19, #16]
	ldr	w1, [x22]
	bl	_snd_als300_gcr_write
	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
	b	_snd_als300_dbgcallleave
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MISC_CONTROL,4,2               ; @MISC_CONTROL
	.comm	_DEVICE_ALS300_PLUS,8,3         ; @DEVICE_ALS300_PLUS
	.comm	_IRQ_ENABLE,4,2                 ; @IRQ_ENABLE
	.comm	_IRQ_SET_BIT,4,2                ; @IRQ_SET_BIT
	.no_dead_strip	_snd_als300_set_irq_flag
.subsections_via_symbols
