	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_uverbs_alloc_async_event_file ## -- Begin function ib_uverbs_alloc_async_event_file
	.p2align	4, 0x90
_ib_uverbs_alloc_async_event_file:      ## @ib_uverbs_alloc_async_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	leaq	20(%rax), %rdi
	callq	_ib_uverbs_init_event_queue
	movq	%r15, 8(%rbx)
	movq	%r15, %rdi
	callq	_kref_get
	movq	%rbx, %rdi
	callq	_kref_init
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdi
	movq	_uverbs_async_event_fops@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdx
	callq	_anon_inode_getfile
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	8(%rbx), %rdi
	movq	_ib_uverbs_release_file@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kref_put
	movq	_ib_uverbs_release_async_event_file@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kref_put
	jmp	LBB0_4
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_2:
	movq	16(%r15), %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	addq	$16, %rdi
	movq	16(%r15), %rsi
	addq	$4, %rsi
	callq	_list_add_tail
	movq	16(%r15), %rdi
	callq	_mutex_unlock
	movq	8(%r15), %rdi
	callq	_WARN_ON
	movq	%rbx, 8(%r15)
	movq	%rbx, %rdi
	callq	_kref_get
	addq	$4, %r15
	movq	_ib_uverbs_event_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_INIT_IB_EVENT_HANDLER
	movq	%r15, %rdi
	callq	_ib_register_event_handler
LBB0_4:
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	"[infinibandevent]"

	.comm	_uverbs_async_event_fops,4,2    ## @uverbs_async_event_fops
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_ib_uverbs_event_handler,4,2    ## @ib_uverbs_event_handler
	.comm	_ib_uverbs_release_file,4,2     ## @ib_uverbs_release_file
	.comm	_ib_uverbs_release_async_event_file,4,2 ## @ib_uverbs_release_async_event_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_uverbs_alloc_async_event_file ; -- Begin function ib_uverbs_alloc_async_event_file
	.p2align	2
_ib_uverbs_alloc_async_event_file:      ; @ib_uverbs_alloc_async_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	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	add	x0, x0, #20
	bl	_ib_uverbs_init_event_queue
	str	x21, [x20, #8]
	mov	x0, x21
	bl	_kref_get
	mov	x0, x20
	bl	_kref_init
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_async_event_fops@GOTPAGE
Lloh9:
	ldr	x1, [x1, _uverbs_async_event_fops@GOTPAGEOFF]
	mov	x2, x20
	bl	_anon_inode_getfile
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x0, [x20, #8]
Lloh10:
	adrp	x8, _ib_uverbs_release_file@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ib_uverbs_release_file@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_kref_put
Lloh13:
	adrp	x8, _ib_uverbs_release_async_event_file@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ib_uverbs_release_async_event_file@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kref_put
	b	LBB0_5
LBB0_3:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
	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
LBB0_4:
	ldr	x0, [x21, #16]
	bl	_mutex_lock
	add	x0, x20, #16
	ldr	x8, [x21, #16]
	add	x1, x8, #4
	bl	_list_add_tail
	ldr	x0, [x21, #16]
	bl	_mutex_unlock
	ldr	x0, [x21, #8]
	bl	_WARN_ON
	str	x20, [x21, #8]
	mov	x0, x20
	bl	_kref_get
	add	x20, x21, #4
Lloh19:
	adrp	x8, _ib_uverbs_event_handler@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ib_uverbs_event_handler@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_INIT_IB_EVENT_HANDLER
	mov	x0, x20
	bl	_ib_register_event_handler
LBB0_5:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.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	"[infinibandevent]"

	.comm	_uverbs_async_event_fops,4,2    ; @uverbs_async_event_fops
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_ib_uverbs_event_handler,4,2    ; @ib_uverbs_event_handler
	.comm	_ib_uverbs_release_file,4,2     ; @ib_uverbs_release_file
	.comm	_ib_uverbs_release_async_event_file,4,2 ; @ib_uverbs_release_async_event_file
.subsections_via_symbols
