	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pfkey_table_grab
_pfkey_table_grab:                      ## @pfkey_table_grab
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_pfkey_table_lock@GOTPCREL(%rip), %rdi
	callq	_write_lock_bh
	movq	_pfkey_table_users@GOTPCREL(%rip), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_wait@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DECLARE_WAITQUEUE
	movq	_pfkey_table_wait@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_add_wait_queue_exclusive
	movq	_TASK_UNINTERRUPTIBLE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_set_current_state
	movq	_pfkey_table_users@GOTPCREL(%rip), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_pfkey_table_lock@GOTPCREL(%rip), %rbx
	movq	_pfkey_table_users@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_write_unlock_bh
	xorl	%eax, %eax
	callq	_schedule
	movq	%rbx, %rdi
	callq	_write_lock_bh
	movl	(%r15), %edi
	callq	_set_current_state
	movq	%r14, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jne	LBB0_3
LBB0_4:
	movq	_TASK_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___set_current_state
	movq	_pfkey_table_wait@GOTPCREL(%rip), %rdi
	movq	_wait@GOTPCREL(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_remove_wait_queue              ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pfkey_table_lock,4,2           ## @pfkey_table_lock
	.comm	_pfkey_table_users,4,2          ## @pfkey_table_users
	.comm	_wait,4,2                       ## @wait
	.comm	_current,4,2                    ## @current
	.comm	_pfkey_table_wait,4,2           ## @pfkey_table_wait
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ## @TASK_UNINTERRUPTIBLE
	.comm	_TASK_RUNNING,4,2               ## @TASK_RUNNING
	.no_dead_strip	_pfkey_table_grab
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pfkey_table_grab
_pfkey_table_grab:                      ; @pfkey_table_grab
	.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
Lloh0:
	adrp	x0, _pfkey_table_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _pfkey_table_lock@GOTPAGEOFF]
	bl	_write_lock_bh
Lloh2:
	adrp	x0, _pfkey_table_users@GOTPAGE
Lloh3:
	ldr	x0, [x0, _pfkey_table_users@GOTPAGEOFF]
	bl	_atomic_read
	cbz	x0, LBB0_5
; %bb.1:
Lloh4:
	adrp	x19, _wait@GOTPAGE
Lloh5:
	ldr	x19, [x19, _wait@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _current@GOTPAGE
Lloh7:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_DECLARE_WAITQUEUE
Lloh9:
	adrp	x0, _pfkey_table_wait@GOTPAGE
Lloh10:
	ldr	x0, [x0, _pfkey_table_wait@GOTPAGEOFF]
	mov	x1, x19
	bl	_add_wait_queue_exclusive
Lloh11:
	adrp	x21, _TASK_UNINTERRUPTIBLE@GOTPAGE
Lloh12:
	ldr	x21, [x21, _TASK_UNINTERRUPTIBLE@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_set_current_state
Lloh13:
	adrp	x0, _pfkey_table_users@GOTPAGE
Lloh14:
	ldr	x0, [x0, _pfkey_table_users@GOTPAGEOFF]
	bl	_atomic_read
	cbz	x0, LBB0_4
; %bb.2:
Lloh15:
	adrp	x19, _pfkey_table_lock@GOTPAGE
Lloh16:
	ldr	x19, [x19, _pfkey_table_lock@GOTPAGEOFF]
Lloh17:
	adrp	x20, _pfkey_table_users@GOTPAGE
Lloh18:
	ldr	x20, [x20, _pfkey_table_users@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_write_unlock_bh
	bl	_schedule
	mov	x0, x19
	bl	_write_lock_bh
	ldr	w0, [x21]
	bl	_set_current_state
	mov	x0, x20
	bl	_atomic_read
	cbnz	x0, LBB0_3
LBB0_4:
Lloh19:
	adrp	x8, _TASK_RUNNING@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TASK_RUNNING@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	___set_current_state
Lloh22:
	adrp	x0, _pfkey_table_wait@GOTPAGE
Lloh23:
	ldr	x0, [x0, _pfkey_table_wait@GOTPAGEOFF]
Lloh24:
	adrp	x1, _wait@GOTPAGE
Lloh25:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	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	_remove_wait_queue
LBB0_5:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_pfkey_table_lock,4,2           ; @pfkey_table_lock
	.comm	_pfkey_table_users,4,2          ; @pfkey_table_users
	.comm	_wait,4,2                       ; @wait
	.comm	_current,4,2                    ; @current
	.comm	_pfkey_table_wait,4,2           ; @pfkey_table_wait
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ; @TASK_UNINTERRUPTIBLE
	.comm	_TASK_RUNNING,4,2               ; @TASK_RUNNING
	.no_dead_strip	_pfkey_table_grab
.subsections_via_symbols
