	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wait_for                       ## -- Begin function wait_for
	.p2align	4, 0x90
_wait_for:                              ## @wait_for
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_is_signal_pending
	testq	%rax, %rax
	je	LBB0_1
LBB0_4:
	movq	__EINTR@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_wait_for_ignore_signals
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	callq	_is_signal_pending
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_4
	jmp	LBB0_6
LBB0_2:
	movq	__ETIMEDOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	__EINTR,4,2                     ## @_EINTR
	.comm	__ETIMEDOUT,4,2                 ## @_ETIMEDOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wait_for                       ; -- Begin function wait_for
	.p2align	2
_wait_for:                              ; @wait_for
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	x0, x1
	bl	_is_signal_pending
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, __EINTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, __EINTR@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_3:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_wait_for_ignore_signals
	tbnz	w0, #31, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_is_signal_pending
Lloh2:
	adrp	x8, __EINTR@GOTPAGE
Lloh3:
	ldr	x8, [x8, __EINTR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w0, wzr, w8, eq
LBB0_5:
	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_6:
Lloh5:
	adrp	x8, __ETIMEDOUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, __ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	__EINTR,4,2                     ; @_EINTR
	.comm	__ETIMEDOUT,4,2                 ; @_ETIMEDOUT
.subsections_via_symbols
