	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pfkey_acquire
_pfkey_acquire:                         ## @pfkey_acquire
	.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	%rdx, %rbx
	callq	_sock_net
	cmpl	$3, (%rbx)
	jne	LBB0_1
## %bb.2:
	movq	8(%rbx), %rdx
	xorl	%r12d, %r12d
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.3:
	cmpq	$0, 16(%rbx)
	je	LBB0_8
## %bb.4:
	movq	%rax, %r14
	movq	_DUMMY_MARK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_xfrm_find_acq_byseq
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_spin_lock_bh
	movq	8(%r15), %rax
	movq	_XFRM_STATE_ACQ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	_XFRM_STATE_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movq	%r14, %rdi
	callq	_wake_up
LBB0_7:
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	movq	%r15, %rdi
	callq	_xfrm_state_put
	jmp	LBB0_8
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_8:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_DUMMY_MARK,4,2                 ## @DUMMY_MARK
	.comm	_XFRM_STATE_ACQ,8,3             ## @XFRM_STATE_ACQ
	.comm	_XFRM_STATE_ERROR,8,3           ## @XFRM_STATE_ERROR
	.no_dead_strip	_pfkey_acquire
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pfkey_acquire
_pfkey_acquire:                         ; @pfkey_acquire
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	bl	_sock_net
	ldr	w8, [x20]
	cmp	w8, #3
	b.ne	LBB0_8
; %bb.1:
	ldr	x2, [x20, #8]
	cbz	x2, LBB0_7
; %bb.2:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_7
; %bb.3:
	mov	x19, x0
Lloh0:
	adrp	x8, _DUMMY_MARK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DUMMY_MARK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_xfrm_find_acq_byseq
	cbz	x0, LBB0_9
; %bb.4:
	mov	x20, x0
	bl	_spin_lock_bh
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x9, _XFRM_STATE_ACQ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _XFRM_STATE_ACQ@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _XFRM_STATE_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XFRM_STATE_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x20, #8]
	mov	x0, x19
	bl	_wake_up
LBB0_6:
	mov	x0, x20
	bl	_spin_unlock_bh
	mov	x0, x20
	bl	_xfrm_state_put
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh9:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_DUMMY_MARK,4,2                 ; @DUMMY_MARK
	.comm	_XFRM_STATE_ACQ,8,3             ; @XFRM_STATE_ACQ
	.comm	_XFRM_STATE_ERROR,8,3           ; @XFRM_STATE_ERROR
	.no_dead_strip	_pfkey_acquire
.subsections_via_symbols
