	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kfd_process_create_wq          ## -- Begin function kfd_process_create_wq
	.p2align	4, 0x90
_kfd_process_create_wq:                 ## @kfd_process_create_wq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_kfd_process_wq@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_alloc_workqueue
	movq	%rax, (%r14)
LBB0_2:
	movq	_kfd_restore_wq@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.4:
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%esi, %esi
	callq	_alloc_ordered_workqueue
	movq	%rax, %rcx
	movq	%rax, (%rbx)
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	xorl	%ebx, %ebx
	testq	%rcx, %rcx
	jne	LBB0_7
LBB0_6:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_kfd_process_destroy_wq
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kfd_process_wq,8,3             ## @kfd_process_wq
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kfd_process_wq"

	.comm	_kfd_restore_wq,8,3             ## @kfd_restore_wq
L_.str.1:                               ## @.str.1
	.asciz	"kfd_restore_wq"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kfd_process_create_wq          ; -- Begin function kfd_process_create_wq
	.p2align	2
_kfd_process_create_wq:                 ; @kfd_process_create_wq
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _kfd_process_wq@GOTPAGE
Lloh1:
	ldr	x19, [x19, _kfd_process_wq@GOTPAGEOFF]
	ldr	x0, [x19]
	cbnz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #0
	mov	w2, #0
	bl	_alloc_workqueue
	str	x0, [x19]
LBB0_2:
Lloh4:
	adrp	x20, _kfd_restore_wq@GOTPAGE
Lloh5:
	ldr	x20, [x20, _kfd_restore_wq@GOTPAGEOFF]
	ldr	x8, [x20]
	cbnz	x8, LBB0_4
; %bb.3:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #0
	bl	_alloc_ordered_workqueue
	mov	x8, x0
	str	x0, [x20]
	ldr	x0, [x19]
LBB0_4:
	cmp	x0, #0
	ccmp	x8, #0, #4, ne
	b.ne	LBB0_6
; %bb.5:
	bl	_kfd_process_destroy_wq
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_kfd_process_wq,8,3             ; @kfd_process_wq
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kfd_process_wq"

	.comm	_kfd_restore_wq,8,3             ; @kfd_restore_wq
l_.str.1:                               ; @.str.1
	.asciz	"kfd_restore_wq"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
