	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pfkey_register
_pfkey_register:                        ## @pfkey_register
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rdi, %r15
	callq	_pfkey_sk
	movq	%rax, %r14
	movl	(%r12), %ecx
	movq	_SADB_SATYPE_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jle	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	_SADB_SATYPE_UNSPEC@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	je	LBB0_7
## %bb.4:
	movl	(%r14), %eax
	movl	$1, %edx
	shll	%cl, %edx
	btl	%ecx, %eax
	jae	LBB0_6
## %bb.5:
	movq	_EEXIST@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_6:
	orl	%edx, %eax
	movl	%eax, (%r14)
LBB0_7:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_xfrm_probe_algs
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_compose_sadb_supported
	testq	%rax, %rax
	je	LBB0_8
## %bb.11:
	movq	%rax, %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_BROADCAST_REGISTERED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r15, %rdi
	callq	_sock_net
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movq	%r15, %rcx
	movl	%eax, %r8d
	callq	_pfkey_broadcast
	jmp	LBB0_12
LBB0_8:
	movl	(%r12), %ecx
	movq	_SADB_SATYPE_UNSPEC@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	je	LBB0_10
## %bb.9:
	movl	$-2, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	roll	%cl, %eax
	andl	%eax, (%r14)
LBB0_10:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SADB_SATYPE_MAX,4,2            ## @SADB_SATYPE_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SADB_SATYPE_UNSPEC,4,2         ## @SADB_SATYPE_UNSPEC
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.comm	_BROADCAST_REGISTERED,4,2       ## @BROADCAST_REGISTERED
	.no_dead_strip	_pfkey_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pfkey_register
_pfkey_register:                        ; @pfkey_register
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x19, x0
	bl	_pfkey_sk
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _SADB_SATYPE_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SADB_SATYPE_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_2:
	mov	x20, x0
Lloh5:
	adrp	x23, _SADB_SATYPE_UNSPEC@GOTPAGE
Lloh6:
	ldr	x23, [x23, _SADB_SATYPE_UNSPEC@GOTPAGEOFF]
	ldr	w9, [x23]
	cmp	w8, w9
	b.eq	LBB0_6
; %bb.3:
	ldr	w9, [x20]
	mov	w10, #1
	lsl	w8, w10, w8
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
Lloh7:
	adrp	x8, _EEXIST@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
	b	LBB0_11
LBB0_5:
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_6:
	bl	_xfrm_probe_algs
Lloh9:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x21
	bl	_compose_sadb_supported
	cbz	x0, LBB0_8
; %bb.7:
	mov	x22, x0
	ldr	w20, [x24]
Lloh11:
	adrp	x8, _BROADCAST_REGISTERED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BROADCAST_REGISTERED@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_sock_net
	mov	x4, x0
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	mov	x3, x19
	bl	_pfkey_broadcast
	mov	w0, #0
	b	LBB0_12
LBB0_8:
	ldr	w8, [x21]
	ldr	w9, [x23]
	cmp	w8, w9
	b.eq	LBB0_10
; %bb.9:
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
LBB0_10:
Lloh14:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SADB_SATYPE_MAX,4,2            ; @SADB_SATYPE_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SADB_SATYPE_UNSPEC,4,2         ; @SADB_SATYPE_UNSPEC
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.comm	_BROADCAST_REGISTERED,4,2       ; @BROADCAST_REGISTERED
	.no_dead_strip	_pfkey_register
.subsections_via_symbols
