	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_sem_wait_timeout           ## -- Begin function sys_sem_wait_timeout
	.p2align	4, 0x90
_sys_sem_wait_timeout:                  ## @sys_sem_wait_timeout
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$32, %rsp
	movl	%edi, -4(%rbp)
	leaq	-4(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	$0, -24(%rbp)
	testq	%rsi, %rsi
	jle	LBB0_2
## %bb.1:
	movq	_sswt_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	-24(%rbp), %rdx
	movq	%rsi, %rdi
	movl	%eax, %esi
	callq	_sys_timeout
	movl	-4(%rbp), %edi
LBB0_2:
	callq	_sys_sem_wait
	xorl	%eax, %eax
	cmpq	$0, -24(%rbp)
	jne	LBB0_4
## %bb.3:
	movq	_sswt_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-24(%rbp), %rsi
	callq	_sys_untimeout
	movl	$1, %eax
LBB0_4:
	addq	$32, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sswt_handler,4,2               ## @sswt_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_sem_wait_timeout           ; -- Begin function sys_sem_wait_timeout
	.p2align	2
_sys_sem_wait_timeout:                  ; @sys_sem_wait_timeout
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	stur	w0, [x29, #-20]
	sub	x8, x29, #20
	stp	xzr, x8, [sp, #8]
Lloh0:
	adrp	x19, _sswt_handler@GOTPAGE
Lloh1:
	ldr	x19, [x19, _sswt_handler@GOTPAGEOFF]
	cmp	x1, #1
	b.lt	LBB0_2
; %bb.1:
	ldr	w8, [x19]
	add	x2, sp, #8
	mov	x0, x1
	mov	x1, x8
	bl	_sys_timeout
	ldur	w0, [x29, #-20]
LBB0_2:
	bl	_sys_sem_wait
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19]
	add	x1, sp, #8
	bl	_sys_untimeout
	mov	w0, #1
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_sswt_handler,4,2               ; @sswt_handler
.subsections_via_symbols
