	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_clean_mailboxq_subtask
_ice_clean_mailboxq_subtask:            ## @ice_clean_mailboxq_subtask
	.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
	movq	%rdi, %rbx
	movq	___ICE_MAILBOXQ_EVENT_PENDING@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	(%rbx), %esi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	_ICE_CTL_Q_MAILBOX@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	___ice_clean_ctrlq
	testq	%rax, %rax
	je	LBB0_2
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	4(%rbx), %r14
	movl	(%r12), %edi
	movl	(%rbx), %esi
	callq	_clear_bit
	movq	%r14, %rdi
	movq	%r14, %rsi
	callq	_ice_ctrlq_pending
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	___ice_clean_ctrlq
LBB0_4:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ice_flush                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	___ICE_MAILBOXQ_EVENT_PENDING,4,2 ## @__ICE_MAILBOXQ_EVENT_PENDING
	.comm	_ICE_CTL_Q_MAILBOX,4,2          ## @ICE_CTL_Q_MAILBOX
	.no_dead_strip	_ice_clean_mailboxq_subtask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_clean_mailboxq_subtask
_ice_clean_mailboxq_subtask:            ; @ice_clean_mailboxq_subtask
	.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, x0
	mov	x19, x0
	ldr	w1, [x19], #4
Lloh0:
	adrp	x22, ___ICE_MAILBOXQ_EVENT_PENDING@GOTPAGE
Lloh1:
	ldr	x22, [x22, ___ICE_MAILBOXQ_EVENT_PENDING@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_test_bit
	cbz	w0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x21, _ICE_CTL_Q_MAILBOX@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ICE_CTL_Q_MAILBOX@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	___ice_clean_ctrlq
	cbz	x0, LBB0_3
LBB0_2:
	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
LBB0_3:
	ldr	w0, [x22]
	ldr	w1, [x20]
	bl	_clear_bit
	mov	x0, x19
	mov	x1, x19
	bl	_ice_ctrlq_pending
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w1, [x21]
	mov	x0, x20
	bl	___ice_clean_ctrlq
LBB0_5:
	mov	x0, x19
	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	_ice_flush
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	___ICE_MAILBOXQ_EVENT_PENDING,4,2 ; @__ICE_MAILBOXQ_EVENT_PENDING
	.comm	_ICE_CTL_Q_MAILBOX,4,2          ; @ICE_CTL_Q_MAILBOX
	.no_dead_strip	_ice_clean_mailboxq_subtask
.subsections_via_symbols
