	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function genwqe_card_thread
_genwqe_card_thread:                    ## @genwqe_card_thread
	.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	%rdi, %r12
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testl	%eax, %eax
	jne	LBB0_13
## %bb.1:
	leaq	4(%r12), %r14
	movq	_GENWQE_POLLING_ENABLED@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_genwqe_check_ddcb_queue
	cmpq	$0, (%r13)
	movl	(%r12), %r15d
	movq	%r12, %rdi
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_genwqe_ddcbs_in_flight
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movb	$1, %al
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_genwqe_next_ddcb_ready
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movb	$1, %al
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_kthread_should_stop
	movl	%eax, %ebx
	testl	%eax, %eax
	setne	%al
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movzbl	%al, %esi
	movl	%r15d, %edi
	movl	$1, %edx
	jmp	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_kthread_should_stop
	movl	%eax, %ebx
	testl	%eax, %eax
	setne	%al
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movzbl	%al, %esi
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_wait_event_interruptible_timeout
	testl	%ebx, %ebx
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_cond_resched
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testl	%eax, %eax
	je	LBB0_2
LBB0_13:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GENWQE_POLLING_ENABLED,8,3     ## @GENWQE_POLLING_ENABLED
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_genwqe_card_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function genwqe_card_thread
_genwqe_card_thread:                    ; @genwqe_card_thread
	.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, x0
	bl	_kthread_should_stop
	cbnz	w0, LBB0_12
; %bb.1:
	add	x20, x19, #4
Lloh0:
	adrp	x23, _GENWQE_POLLING_ENABLED@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GENWQE_POLLING_ENABLED@GOTPAGEOFF]
Lloh2:
	adrp	x24, _HZ@GOTPAGE
Lloh3:
	ldr	x24, [x24, _HZ@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_genwqe_check_ddcb_queue
	ldr	x8, [x23]
	ldr	w21, [x19]
	mov	x0, x19
	cbz	x8, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_genwqe_ddcbs_in_flight
	cbz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w22, #0
	mov	w1, #1
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_genwqe_next_ddcb_ready
	cbz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w22, #0
	mov	w1, #1
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_kthread_should_stop
	mov	x22, x0
	cmp	w0, #0
	cset	w1, ne
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	mov	w2, #1
	bl	_wait_event_interruptible_timeout
	cbz	w22, LBB0_11
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_kthread_should_stop
	mov	x22, x0
	cmp	w0, #0
	cset	w1, ne
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w2, [x24]
	mov	x0, x21
	bl	_wait_event_interruptible_timeout
	cbnz	w22, LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_cond_resched
	bl	_kthread_should_stop
	cbz	w0, LBB0_2
LBB0_12:
	mov	w0, #0
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GENWQE_POLLING_ENABLED,8,3     ; @GENWQE_POLLING_ENABLED
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_genwqe_card_thread
.subsections_via_symbols
