	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_eventfd2                   ## -- Begin function sys_eventfd2
	.p2align	4, 0x90
_sys_eventfd2:                          ## @sys_eventfd2
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movl	%edi, %r14d
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_STRACE
	movq	_O_CLOEXEC_@GOTPCREL(%rip), %rax
	movq	_O_NONBLOCK_@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	testl	%ebx, %ecx
	je	LBB0_2
## %bb.1:
	movq	__EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	_eventfd_ops@GOTPCREL(%rip), %rdi
	callq	_adhoc_fd_create
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movl	%r14d, (%rax)
	movq	%rax, %rdi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_f_install                      ## TAILCALL
LBB0_3:
	movq	__ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"eventfd(%d, %#x)"

	.comm	_O_CLOEXEC_,4,2                 ## @O_CLOEXEC_
	.comm	_O_NONBLOCK_,4,2                ## @O_NONBLOCK_
	.comm	__EINVAL,4,2                    ## @_EINVAL
	.comm	_eventfd_ops,4,2                ## @eventfd_ops
	.comm	__ENOMEM,4,2                    ## @_ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_eventfd2                   ; -- Begin function sys_eventfd2
	.p2align	2
_sys_eventfd2:                          ; @sys_eventfd2
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_STRACE
Lloh2:
	adrp	x8, _O_CLOEXEC_@GOTPAGE
Lloh3:
	ldr	x8, [x8, _O_CLOEXEC_@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _O_NONBLOCK_@GOTPAGE
Lloh6:
	ldr	x9, [x9, _O_NONBLOCK_@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bics	wzr, w19, w8
	b.eq	LBB0_3
; %bb.1:
Lloh8:
	adrp	x8, __EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, __EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh10:
	adrp	x0, _eventfd_ops@GOTPAGE
Lloh11:
	ldr	x0, [x0, _eventfd_ops@GOTPAGEOFF]
	bl	_adhoc_fd_create
	cbz	x0, LBB0_5
; %bb.4:
	str	w20, [x0]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_f_install
LBB0_5:
Lloh12:
	adrp	x8, __ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, __ENOMEM@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"eventfd(%d, %#x)"

	.comm	_O_CLOEXEC_,4,2                 ; @O_CLOEXEC_
	.comm	_O_NONBLOCK_,4,2                ; @O_NONBLOCK_
	.comm	__EINVAL,4,2                    ; @_EINVAL
	.comm	_eventfd_ops,4,2                ; @eventfd_ops
	.comm	__ENOMEM,4,2                    ; @_ENOMEM
.subsections_via_symbols
