	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_uverbs_alloc_event_file     ## -- Begin function ib_uverbs_alloc_event_file
	.p2align	4, 0x90
_ib_uverbs_alloc_event_file:            ## @ib_uverbs_alloc_event_file
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	leaq	44(%rax), %rdi
	callq	_kref_init
	leaq	40(%r13), %rdi
	callq	_spin_lock_init
	leaq	36(%r13), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r13, %rdi
	addq	$32, %rdi
	callq	_init_waitqueue_head
	movq	%r12, 24(%r13)
	movl	%r15d, (%r13)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r13)
	xorl	%eax, %eax
	callq	_get_unused_fd
	movl	%eax, (%r14)
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdi
	movq	_uverbs_event_fops@GOTPCREL(%rip), %rsi
	movq	%r13, %rdx
	callq	_anon_inode_getfile
	testq	%rax, %rax
	je	LBB0_5
## %bb.8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_3:
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_5:
	movq	_ENFILE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movl	(%r14), %edi
	callq	_put_unused_fd
LBB0_6:
	movq	%r13, %rdi
	callq	_kfree
LBB0_7:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[uverbs-event]"

	.comm	_uverbs_event_fops,4,2          ## @uverbs_event_fops
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_ENFILE,4,2                     ## @ENFILE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_uverbs_alloc_event_file     ; -- Begin function ib_uverbs_alloc_event_file
	.p2align	2
_ib_uverbs_alloc_event_file:            ; @ib_uverbs_alloc_event_file
	.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	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kmalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	add	x0, x0, #44
	bl	_kref_init
	add	x0, x19, #40
	bl	_spin_lock_init
	add	x0, x19, #36
	bl	_INIT_LIST_HEAD
	add	x0, x19, #32
	bl	_init_waitqueue_head
	stp	xzr, x22, [x19, #16]
	str	w21, [x19]
	str	xzr, [x19, #8]
	bl	_get_unused_fd
	str	w0, [x20]
	tbnz	w0, #31, LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
Lloh8:
	adrp	x1, _uverbs_event_fops@GOTPAGE
Lloh9:
	ldr	x1, [x1, _uverbs_event_fops@GOTPAGEOFF]
	mov	x2, x19
	bl	_anon_inode_getfile
	cbz	x0, LBB0_6
; %bb.3:
	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_4:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_5:
	mov	x21, x0
	b	LBB0_7
LBB0_6:
Lloh13:
	adrp	x8, _ENFILE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENFILE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w21, w8
	ldr	w0, [x20]
	bl	_put_unused_fd
LBB0_7:
	mov	x0, x19
	bl	_kfree
LBB0_8:
	mov	x0, x21
	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
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[uverbs-event]"

	.comm	_uverbs_event_fops,4,2          ; @uverbs_event_fops
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_ENFILE,4,2                     ; @ENFILE
.subsections_via_symbols
