	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_child_resume                   ## -- Begin function child_resume
	.p2align	4, 0x90
_child_resume:                          ## @child_resume
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r12d
	callq	_ptid_get_pid
	movl	%eax, %r15d
	movq	_PT_STEP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	cmpl	$-1, %r15d
	je	LBB0_1
## %bb.2:
	testl	%r12d, %r12d
	jne	LBB0_6
	jmp	LBB0_3
LBB0_1:
	movq	_inferior_ptid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ptid_get_pid
	movl	%eax, %r15d
	testl	%r12d, %r12d
	jne	LBB0_6
LBB0_3:
	movq	_current_regcache@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_I386_EFLAGS_REGNUM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-36(%rbp), %rdx
	callq	_regcache_cooked_read_unsigned
	movl	-36(%rbp), %edx
	testl	$256, %edx                      ## imm = 0x100
	je	LBB0_5
## %bb.4:
	movl	(%r12), %edi
	movl	(%rbx), %esi
	andl	$-257, %edx                     ## imm = 0xFEFF
	callq	_regcache_cooked_write_unsigned
LBB0_5:
	movq	_PT_CONTINUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_6:
	movl	%r14d, %edi
	callq	_target_signal_to_host
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	$1, %edx
	movl	%eax, %ecx
	callq	_ptrace
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rdi
	callq	_perror_with_name
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PT_STEP,4,2                    ## @PT_STEP
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.comm	_current_regcache,4,2           ## @current_regcache
	.comm	_I386_EFLAGS_REGNUM,4,2         ## @I386_EFLAGS_REGNUM
	.comm	_PT_CONTINUE,4,2                ## @PT_CONTINUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ptrace"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_child_resume                   ; -- Begin function child_resume
	.p2align	2
_child_resume:                          ; @child_resume
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x22, x1
	bl	_ptid_get_pid
	mov	x20, x0
Lloh0:
	adrp	x8, _PT_STEP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PT_STEP@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
	cbnz	w22, LBB0_6
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _inferior_ptid@GOTPAGE
Lloh4:
	ldr	x8, [x8, _inferior_ptid@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_ptid_get_pid
	mov	x20, x0
	cbnz	w22, LBB0_6
LBB0_3:
Lloh6:
	adrp	x21, _current_regcache@GOTPAGE
Lloh7:
	ldr	x21, [x21, _current_regcache@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh8:
	adrp	x22, _I386_EFLAGS_REGNUM@GOTPAGE
Lloh9:
	ldr	x22, [x22, _I386_EFLAGS_REGNUM@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #12
	bl	_regcache_cooked_read_unsigned
	ldr	w8, [sp, #12]
	tbz	w8, #8, LBB0_5
; %bb.4:
	ldr	w0, [x21]
	ldr	w1, [x22]
	and	w2, w8, #0xfffffeff
	bl	_regcache_cooked_write_unsigned
LBB0_5:
Lloh10:
	adrp	x8, _PT_CONTINUE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PT_CONTINUE@GOTPAGEOFF]
Lloh12:
	ldr	w21, [x8]
LBB0_6:
	mov	x0, x19
	bl	_target_signal_to_host
	mov	x3, x0
	mov	x0, x21
	mov	x1, x20
	mov	w2, #1
	bl	_ptrace
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.7:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror_with_name
LBB0_8:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PT_STEP,4,2                    ; @PT_STEP
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.comm	_current_regcache,4,2           ; @current_regcache
	.comm	_I386_EFLAGS_REGNUM,4,2         ; @I386_EFLAGS_REGNUM
	.comm	_PT_CONTINUE,4,2                ; @PT_CONTINUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ptrace"

.subsections_via_symbols
