	.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
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	leaq	4(%rax), %r12
	movq	%r12, %rdi
	callq	_kref_init
	leaq	48(%rbx), %rdi
	callq	_spin_lock_init
	leaq	44(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	40(%rbx), %rdi
	callq	_init_waitqueue_head
	movq	%r14, 8(%rbx)
	movq	%r14, %rdi
	callq	_kref_get
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movq	_FMODE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_uverbs_event_fops@GOTPCREL(%rip), %rdi
	callq	_fops_get
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_alloc_file
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.8:
	movq	8(%rbx), %rdi
	movq	_ib_uverbs_release_file@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kref_put
	movq	_ib_uverbs_release_event_file@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_kref_put
LBB0_9:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_2
LBB0_4:
	movq	%rbx, (%r15)
	movq	24(%r14), %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	addq	$16, %rdi
	movq	24(%r14), %rsi
	addq	$4, %rsi
	callq	_list_add_tail
	movq	24(%r14), %rdi
	callq	_mutex_unlock
	testl	%r13d, %r13d
	je	LBB0_9
## %bb.5:
	movq	8(%r14), %rdi
	callq	_WARN_ON
	movq	%rbx, 8(%r14)
	movq	%r12, %rdi
	callq	_kref_get
	leaq	16(%r14), %r12
	movq	_ib_uverbs_event_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_INIT_IB_EVENT_HANDLER
	movq	%r12, %rdi
	callq	_ib_register_event_handler
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_fput
	movq	8(%r14), %rdi
	addq	$4, %rdi
	movq	_ib_uverbs_release_event_file@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kref_put
	movq	$0, 8(%r14)
	movl	%r12d, %edi
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_6:
	movl	$1, (%rbx)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_FMODE_READ,4,2                 ## @FMODE_READ
	.comm	_uverbs_event_fops,4,2          ## @uverbs_event_fops
	.comm	_ib_uverbs_event_handler,4,2    ## @ib_uverbs_event_handler
	.comm	_ib_uverbs_release_event_file,4,2 ## @ib_uverbs_release_event_file
	.comm	_ib_uverbs_release_file,4,2     ## @ib_uverbs_release_file
.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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	add	x22, x0, #4
	mov	x0, x22
	bl	_kref_init
	add	x0, x20, #48
	bl	_spin_lock_init
	add	x0, x20, #44
	bl	_INIT_LIST_HEAD
	add	x0, x20, #40
	bl	_init_waitqueue_head
	str	x19, [x20, #8]
	mov	x0, x19
	bl	_kref_get
	stp	xzr, xzr, [x20, #24]
Lloh3:
	adrp	x8, _FMODE_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FMODE_READ@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
Lloh6:
	adrp	x0, _uverbs_event_fops@GOTPAGE
Lloh7:
	ldr	x0, [x0, _uverbs_event_fops@GOTPAGEOFF]
	bl	_fops_get
	mov	x1, x0
	mov	x0, x24
	bl	_alloc_file
	mov	x24, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x0, [x20, #8]
Lloh8:
	adrp	x8, _ib_uverbs_release_file@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ib_uverbs_release_file@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_kref_put
Lloh11:
	adrp	x8, _ib_uverbs_release_event_file@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ib_uverbs_release_event_file@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_kref_put
LBB0_3:
	mov	x0, x24
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_5:
	str	x20, [x24]
	ldr	x0, [x19, #24]
	bl	_mutex_lock
	add	x0, x20, #16
	ldr	x8, [x19, #24]
	add	x1, x8, #4
	bl	_list_add_tail
	ldr	x0, [x19, #24]
	bl	_mutex_unlock
	cbz	w23, LBB0_3
; %bb.6:
	ldr	x0, [x19, #8]
	bl	_WARN_ON
	str	x20, [x19, #8]
	mov	x0, x22
	bl	_kref_get
	add	x22, x19, #16
Lloh17:
	adrp	x8, _ib_uverbs_event_handler@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ib_uverbs_event_handler@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x21
	bl	_INIT_IB_EVENT_HANDLER
	mov	x0, x22
	bl	_ib_register_event_handler
	cbz	w0, LBB0_9
; %bb.7:
	mov	x21, x0
	mov	x0, x24
	bl	_fput
	ldr	x8, [x19, #8]
	add	x0, x8, #4
Lloh20:
	adrp	x8, _ib_uverbs_release_event_file@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ib_uverbs_release_event_file@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_kref_put
	str	xzr, [x19, #8]
	mov	x0, x21
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_9:
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_FMODE_READ,4,2                 ; @FMODE_READ
	.comm	_uverbs_event_fops,4,2          ; @uverbs_event_fops
	.comm	_ib_uverbs_event_handler,4,2    ; @ib_uverbs_event_handler
	.comm	_ib_uverbs_release_event_file,4,2 ; @ib_uverbs_release_event_file
	.comm	_ib_uverbs_release_file,4,2     ; @ib_uverbs_release_file
.subsections_via_symbols
