	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xfrm_state_register_afinfo     ## -- Begin function xfrm_state_register_afinfo
	.p2align	4, 0x90
_xfrm_state_register_afinfo:            ## @xfrm_state_register_afinfo
	.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	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	(%rbx), %rax
	movq	_NPROTO@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setae	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_EAFNOSUPPORT@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	_xfrm_state_afinfo_lock@GOTPCREL(%rip), %rdi
	callq	_write_lock_bh
	movq	_xfrm_state_afinfo@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rbx), %rcx
	xorl	%edi, %edi
	cmpq	$0, (%rax,%rcx,8)
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_7:
	movq	(%r14), %rax
	movq	(%rbx), %rcx
	movq	%rbx, (%rax,%rcx,8)
	xorl	%ebx, %ebx
LBB0_8:
	movq	_xfrm_state_afinfo_lock@GOTPCREL(%rip), %rdi
	callq	_write_unlock_bh
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NPROTO,8,3                     ## @NPROTO
	.comm	_EAFNOSUPPORT,4,2               ## @EAFNOSUPPORT
	.comm	_xfrm_state_afinfo_lock,4,2     ## @xfrm_state_afinfo_lock
	.comm	_xfrm_state_afinfo,8,3          ## @xfrm_state_afinfo
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xfrm_state_register_afinfo     ; -- Begin function xfrm_state_register_afinfo
	.p2align	2
_xfrm_state_register_afinfo:            ; @xfrm_state_register_afinfo
	.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	x19, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _NPROTO@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NPROTO@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, hs
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.3:
Lloh5:
	adrp	x8, _EAFNOSUPPORT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EAFNOSUPPORT@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
	mov	x0, x20
	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
LBB0_6:
Lloh7:
	adrp	x0, _xfrm_state_afinfo_lock@GOTPAGE
Lloh8:
	ldr	x0, [x0, _xfrm_state_afinfo_lock@GOTPAGEOFF]
	bl	_write_lock_bh
Lloh9:
	adrp	x21, _xfrm_state_afinfo@GOTPAGE
Lloh10:
	ldr	x21, [x21, _xfrm_state_afinfo@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x19]
	ldr	x8, [x8, x9, lsl #3]
	cmp	x8, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.7:
Lloh11:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_8:
	mov	w20, #0
	ldr	x8, [x21]
	ldr	x9, [x19]
	str	x19, [x8, x9, lsl #3]
LBB0_9:
Lloh14:
	adrp	x0, _xfrm_state_afinfo_lock@GOTPAGE
Lloh15:
	ldr	x0, [x0, _xfrm_state_afinfo_lock@GOTPAGEOFF]
	bl	_write_unlock_bh
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NPROTO,8,3                     ; @NPROTO
	.comm	_EAFNOSUPPORT,4,2               ; @EAFNOSUPPORT
	.comm	_xfrm_state_afinfo_lock,4,2     ; @xfrm_state_afinfo_lock
	.comm	_xfrm_state_afinfo,8,3          ; @xfrm_state_afinfo
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
.subsections_via_symbols
