	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_hda_queue_unsol_event      ## -- Begin function snd_hda_queue_unsol_event
	.p2align	4, 0x90
_snd_hda_queue_unsol_event:             ## @snd_hda_queue_unsol_event
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$0, (%rdi)
	je	LBB0_4
## %bb.2:
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rbx, %rdi
	callq	_trace_hda_unsol_event
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movl	(%rsi), %eax
	incl	%eax
	movq	_HDA_UNSOL_QUEUE_SIZE@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
                                        ## kill: def $edx killed $edx def $rdx
	movl	%edx, (%rsi)
	leal	(%rdx,%rdx), %eax
	movq	8(%rsi), %rcx
	movq	%r15, (%rcx,%rax,8)
	movq	8(%rsi), %rax
	leal	(%rdx,%rdx), %ecx
	incl	%ecx
	movq	%r14, (%rax,%rcx,8)
	movl	(%rbx), %edi
	addq	$4, %rsi
	callq	_queue_work
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDA_UNSOL_QUEUE_SIZE,4,2       ## @HDA_UNSOL_QUEUE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_hda_queue_unsol_event      ; -- Begin function snd_hda_queue_unsol_event
	.p2align	2
_snd_hda_queue_unsol_event:             ; @snd_hda_queue_unsol_event
	.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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x19, x2
	mov	x21, x1
	mov	x0, x20
	bl	_trace_hda_unsol_event
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w9, [x8]
	add	w9, w9, #1
Lloh0:
	adrp	x10, _HDA_UNSOL_QUEUE_SIZE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _HDA_UNSOL_QUEUE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	sdiv	w11, w9, w10
	msub	w9, w11, w10, w9
	str	w9, [x8]
	lsl	w10, w9, #1
	ldr	x11, [x8, #8]
	str	x21, [x11, w10, uxtw #3]
	ldr	x10, [x8, #8]
	mov	w11, #1
	bfi	w11, w9, #1, #31
	str	x19, [x10, w11, uxtw #3]
	ldr	w0, [x20]
	add	x1, x8, #4
	bl	_queue_work
LBB0_4:
	mov	w0, #0
	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	_HDA_UNSOL_QUEUE_SIZE,4,2       ; @HDA_UNSOL_QUEUE_SIZE
.subsections_via_symbols
