	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function task_detach
_task_detach:                           ## @task_detach
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	setg	%dil
	callq	_REQUIRE
	leaq	L_.str(%rip), %rdi
	callq	_XTRACE
	decq	(%rbx)
	movq	_ISC_FALSE@GOTPCREL(%rip), %rax
	jne	LBB0_3
## %bb.1:
	movq	8(%rbx), %rcx
	movq	_task_state_idle@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.2:
	movl	16(%rbx), %edi
	callq	_EMPTY
	movl	%eax, %edi
	callq	_INSIST
	movq	_task_state_ready@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	_ISC_TRUE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"detach"

	.comm	_task_state_idle,8,3            ## @task_state_idle
	.comm	_task_state_ready,8,3           ## @task_state_ready
	.comm	_ISC_TRUE,4,2                   ## @ISC_TRUE
	.comm	_ISC_FALSE,4,2                  ## @ISC_FALSE
	.no_dead_strip	_task_detach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function task_detach
_task_detach:                           ; @task_detach
	.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
	mov	x19, x0
	ldr	x8, [x0]
	cmp	x8, #0
	cset	w0, gt
	bl	_REQUIRE
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_XTRACE
	ldr	x8, [x19]
	subs	x8, x8, #1
	str	x8, [x19]
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _task_state_idle@GOTPAGE
Lloh3:
	ldr	x9, [x9, _task_state_idle@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x19, #16]
	bl	_EMPTY
	bl	_INSIST
Lloh5:
	adrp	x8, _task_state_ready@GOTPAGE
Lloh6:
	ldr	x8, [x8, _task_state_ready@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh8:
	adrp	x8, _ISC_TRUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ISC_TRUE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh10:
	adrp	x8, _ISC_FALSE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ISC_FALSE@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"detach"

	.comm	_task_state_idle,8,3            ; @task_state_idle
	.comm	_task_state_ready,8,3           ; @task_state_ready
	.comm	_ISC_TRUE,4,2                   ; @ISC_TRUE
	.comm	_ISC_FALSE,4,2                  ; @ISC_FALSE
	.no_dead_strip	_task_detach
.subsections_via_symbols
