	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_gid_entry
_alloc_gid_entry:                       ## @alloc_gid_entry
	.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	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movl	(%r14), %edi
	movl	$1, %esi
	callq	_rcu_dereference_protected
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %r15
	movl	(%r12), %esi
	movl	$8, %edi
	callq	_kzalloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%r15, %rdi
	callq	_dev_hold
	movq	16(%rbx), %rax
	movq	%r15, (%rax)
LBB0_4:
	leaq	12(%rbx), %rdi
	callq	_kref_init
	leaq	8(%rbx), %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%rbx, %rdi
	addq	$4, %rdi
	movq	_free_gid_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	_GID_TABLE_ENTRY_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_8
LBB0_6:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_free_gid_work,4,2              ## @free_gid_work
	.comm	_GID_TABLE_ENTRY_INVALID,4,2    ## @GID_TABLE_ENTRY_INVALID
	.no_dead_strip	_alloc_gid_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_gid_entry
_alloc_gid_entry:                       ; @alloc_gid_entry
	.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, x0
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #24
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w0, [x20]
	mov	w1, #1
	bl	_rcu_dereference_protected
	cbz	x0, LBB0_4
; %bb.2:
	mov	x21, x0
	ldr	w1, [x22]
	mov	w0, #8
	bl	_kzalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_dev_hold
	ldr	x8, [x19, #16]
	str	x21, [x8]
LBB0_4:
	add	x0, x19, #12
	bl	_kref_init
	add	x0, x19, #8
	mov	x1, x20
	mov	w2, #4
	bl	_memcpy
	add	x0, x19, #4
Lloh2:
	adrp	x8, _free_gid_work@GOTPAGE
Lloh3:
	ldr	x8, [x8, _free_gid_work@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh5:
	adrp	x8, _GID_TABLE_ENTRY_INVALID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GID_TABLE_ENTRY_INVALID@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_6:
	mov	x0, x19
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_free_gid_work,4,2              ; @free_gid_work
	.comm	_GID_TABLE_ENTRY_INVALID,4,2    ; @GID_TABLE_ENTRY_INVALID
	.no_dead_strip	_alloc_gid_entry
.subsections_via_symbols
