	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hclge_task_schedule            ## -- Begin function hclge_task_schedule
	.p2align	4, 0x90
_hclge_task_schedule:                   ## @hclge_task_schedule
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_HCLGE_STATE_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%r15), %rbx
	movq	%rbx, %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	_HCLGE_STATE_REMOVING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_HCLGE_STATE_SERVICE_SCHED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_and_set_bit
	testl	%eax, %eax
	je	LBB0_4
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	incl	12(%r15)
	incl	8(%r15)
	leaq	4(%r15), %rdi
	callq	_cpumask_first
	movq	_system_wq@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movq	%r15, %rdx
	movq	%r14, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mod_delayed_work_on            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_STATE_DOWN,4,2           ## @HCLGE_STATE_DOWN
	.comm	_HCLGE_STATE_REMOVING,4,2       ## @HCLGE_STATE_REMOVING
	.comm	_HCLGE_STATE_SERVICE_SCHED,4,2  ## @HCLGE_STATE_SERVICE_SCHED
	.comm	_system_wq,4,2                  ## @system_wq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hclge_task_schedule            ; -- Begin function hclge_task_schedule
	.p2align	2
_hclge_task_schedule:                   ; @hclge_task_schedule
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _HCLGE_STATE_DOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HCLGE_STATE_DOWN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x21, x20, #16
	mov	x1, x21
	bl	_test_bit
	cbnz	w0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _HCLGE_STATE_REMOVING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HCLGE_STATE_REMOVING@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbnz	w0, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _HCLGE_STATE_SERVICE_SCHED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HCLGE_STATE_SERVICE_SCHED@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_and_set_bit
	cbz	w0, LBB0_4
LBB0_3:
	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_4:
	ldr	d0, [x20, #8]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	str	d0, [x20, #8]
	add	x0, x20, #4
	bl	_cpumask_first
Lloh9:
	adrp	x8, _system_wq@GOTPAGE
Lloh10:
	ldr	x8, [x8, _system_wq@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x2, x20
	mov	x3, 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	_mod_delayed_work_on
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_STATE_DOWN,4,2           ; @HCLGE_STATE_DOWN
	.comm	_HCLGE_STATE_REMOVING,4,2       ; @HCLGE_STATE_REMOVING
	.comm	_HCLGE_STATE_SERVICE_SCHED,4,2  ; @HCLGE_STATE_SERVICE_SCHED
	.comm	_system_wq,4,2                  ; @system_wq
.subsections_via_symbols
