	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pfkey_dump
_pfkey_dump:                            ## @pfkey_dump
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	callq	_pfkey_sk
	cmpq	$0, 8(%rax)
	je	LBB0_3
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	%rax, %rbx
	movl	8(%r14), %edi
	callq	_pfkey_satype2proto
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	4(%r14), %ecx
	movl	%ecx, 20(%rbx)
	movl	(%r14), %ecx
	movl	%ecx, 16(%rbx)
	movq	_pfkey_dump_sa@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%rbx)
	movq	_pfkey_dump_sa_done@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rbx)
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_xfrm_state_walk_init
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pfkey_do_dump                  ## TAILCALL
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_pfkey_dump_sa,8,3              ## @pfkey_dump_sa
	.comm	_pfkey_dump_sa_done,4,2         ## @pfkey_dump_sa_done
	.no_dead_strip	_pfkey_dump
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pfkey_dump
_pfkey_dump:                            ; @pfkey_dump
	.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	_pfkey_sk
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x19, x0
	ldr	w0, [x20, #8]
	bl	_pfkey_satype2proto
	cbz	x0, LBB0_5
; %bb.4:
	mov	x1, x0
	ldr	d0, [x20]
	str	d0, [x19, #16]
Lloh2:
	adrp	x8, _pfkey_dump_sa@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pfkey_dump_sa@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh5:
	adrp	x8, _pfkey_dump_sa_done@GOTPAGE
Lloh6:
	ldr	x8, [x8, _pfkey_dump_sa_done@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_xfrm_state_walk_init
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pfkey_do_dump
LBB0_5:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_pfkey_dump_sa,8,3              ; @pfkey_dump_sa
	.comm	_pfkey_dump_sa_done,4,2         ; @pfkey_dump_sa_done
	.no_dead_strip	_pfkey_dump
.subsections_via_symbols
