	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kevent_get_timeout             ## -- Begin function kevent_get_timeout
	.p2align	4, 0x90
_kevent_get_timeout:                    ## @kevent_get_timeout
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	movl	%esi, -24(%rbp)
	movl	$0, -20(%rbp)
	movl	$1, %edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	leaq	-24(%rbp), %r9
	movl	%r14d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	movl	$1, %r8d
	callq	_kevent
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_free
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_6:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory"

L_.str.1:                               ## @.str.1
	.asciz	"kevent(2)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kevent_get_timeout             ; -- Begin function kevent_get_timeout
	.p2align	2
_kevent_get_timeout:                    ; @kevent_get_timeout
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
	stp	w1, wzr, [sp, #8]
	mov	w0, #1
	mov	w1, #4
	bl	_calloc
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
	add	x5, sp, #8
	mov	x0, x20
	mov	x1, #0
	mov	w2, #0
	mov	x3, x19
	mov	w4, #1
	bl	_kevent
	tbnz	w0, #31, LBB0_5
; %bb.3:
	cbnz	w0, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_free
	mov	x19, #0
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory"

l_.str.1:                               ; @.str.1
	.asciz	"kevent(2)"

.subsections_via_symbols
