	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xfrm_state_construct
_xfrm_state_construct:                  ## @xfrm_state_construct
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %rbx
	callq	_xfrm_state_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rsi
	callq	_copy_from_user_state
	leaq	112(%r15), %rdi
	leaq	92(%r15), %r13
	movq	_XFRMA_ALG_AEAD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14,%rax,8), %rdx
	movq	%r13, %rsi
	callq	_attach_aead
	movq	%r14, %rcx
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:
	leaq	108(%r15), %rbx
	leaq	96(%r15), %r12
	movq	_XFRMA_ALG_AUTH_TRUNC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rcx,%rax,8), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	callq	_attach_auth_trunc
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	cmpl	$0, (%r12)
	je	LBB0_5
LBB0_6:
	leaq	104(%r15), %rdi
	movq	_xfrm_ealg_get_byname@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_XFRMA_ALG_CRYPT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rcx
	movq	%r13, %rsi
	callq	_attach_one_algo
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:
	leaq	100(%r15), %rdi
	leaq	88(%r15), %rsi
	movq	_xfrm_calg_get_byname@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_XFRMA_ALG_COMP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rcx
	callq	_attach_one_algo
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	movq	_XFRMA_ENCAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.9:
	callq	_nla_data
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$4, %esi
	callq	_kmemdup
	movq	%rax, 80(%r15)
	testq	%rax, %rax
	je	LBB0_10
LBB0_13:
	movq	_XFRMA_COADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	callq	_nla_data
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$4, %esi
	callq	_kmemdup
	movq	%rax, 72(%r15)
	testq	%rax, %rax
	je	LBB0_10
LBB0_15:
	movq	%r15, %rsi
	addq	$64, %rsi
	movq	%rbx, %rdi
	callq	_xfrm_mark_get
	movq	%r15, %rdi
	callq	_xfrm_init_state
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.16:
	movq	_XFRMA_SEC_CTX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:
	callq	_nla_data
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_security_xfrm_state_alloc
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_11
LBB0_18:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	8(%rdx), %rcx
	movq	%rcx, 16(%r15)
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	(%rdx), %eax
	movq	_XFRM_AE_ETH_M@GOTPCREL(%rip), %rsi
	cltd
	idivl	(%rsi)
	movl	%eax, (%r15)
	movq	$0, 56(%r15)
	movdqu	24(%r15), %xmm0
	movq	%rcx, %xmm1
	pshufd	$68, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,0,1]
	paddq	%xmm0, %xmm1
	movdqu	%xmm1, 40(%r15)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_xfrm_update_ae_params
	jmp	LBB0_19
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_12
LBB0_5:
	movq	_XFRMA_ALG_AUTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rcx,%rax,8), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_attach_auth
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_6
LBB0_11:
	movq	_XFRM_STATE_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movq	%r15, %rdi
	callq	_xfrm_state_put
	movq	-72(%rbp), %r12                 ## 8-byte Reload
LBB0_12:
	movl	%r14d, (%r12)
	xorl	%r15d, %r15d
LBB0_19:
	movq	%r15, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%r14d, %r14d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_XFRMA_ALG_AEAD,8,3             ## @XFRMA_ALG_AEAD
	.comm	_XFRMA_ALG_AUTH_TRUNC,8,3       ## @XFRMA_ALG_AUTH_TRUNC
	.comm	_XFRMA_ALG_AUTH,8,3             ## @XFRMA_ALG_AUTH
	.comm	_xfrm_ealg_get_byname,4,2       ## @xfrm_ealg_get_byname
	.comm	_XFRMA_ALG_CRYPT,8,3            ## @XFRMA_ALG_CRYPT
	.comm	_xfrm_calg_get_byname,4,2       ## @xfrm_calg_get_byname
	.comm	_XFRMA_ALG_COMP,8,3             ## @XFRMA_ALG_COMP
	.comm	_XFRMA_ENCAP,8,3                ## @XFRMA_ENCAP
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_XFRMA_COADDR,8,3               ## @XFRMA_COADDR
	.comm	_XFRMA_SEC_CTX,8,3              ## @XFRMA_SEC_CTX
	.comm	_HZ,4,2                         ## @HZ
	.comm	_XFRM_AE_ETH_M,4,2              ## @XFRM_AE_ETH_M
	.comm	_XFRM_STATE_DEAD,4,2            ## @XFRM_STATE_DEAD
	.no_dead_strip	_xfrm_state_construct
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xfrm_state_construct
_xfrm_state_construct:                  ; @xfrm_state_construct
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
	bl	_xfrm_state_alloc
	cbz	x0, LBB0_14
; %bb.1:
	mov	x19, x0
	mov	x1, x23
	bl	_copy_from_user_state
	add	x0, x19, #112
	add	x24, x19, #92
Lloh0:
	adrp	x8, _XFRMA_ALG_AEAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XFRMA_ALG_AEAD@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x2, [x21, x8, lsl #3]
	mov	x1, x24
	bl	_attach_aead
	mov	x25, x0
	cbnz	w0, LBB0_16
; %bb.2:
	add	x26, x19, #108
	add	x27, x19, #96
Lloh3:
	adrp	x8, _XFRMA_ALG_AUTH_TRUNC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XFRMA_ALG_AUTH_TRUNC@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x2, [x21, x8, lsl #3]
	mov	x0, x26
	mov	x1, x27
	bl	_attach_auth_trunc
	mov	x25, x0
	cbnz	w0, LBB0_16
; %bb.3:
	ldr	w8, [x27]
	cbz	w8, LBB0_15
LBB0_4:
	add	x0, x19, #104
Lloh6:
	adrp	x8, _xfrm_ealg_get_byname@GOTPAGE
Lloh7:
	ldr	x8, [x8, _xfrm_ealg_get_byname@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _XFRMA_ALG_CRYPT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _XFRMA_ALG_CRYPT@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x3, [x21, x8, lsl #3]
	mov	x1, x24
	bl	_attach_one_algo
	mov	x25, x0
	cbnz	w0, LBB0_16
; %bb.5:
	add	x0, x19, #100
	add	x1, x19, #88
Lloh12:
	adrp	x8, _xfrm_calg_get_byname@GOTPAGE
Lloh13:
	ldr	x8, [x8, _xfrm_calg_get_byname@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _XFRMA_ALG_COMP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _XFRMA_ALG_COMP@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	x3, [x21, x8, lsl #3]
	bl	_attach_one_algo
	mov	x25, x0
	cbnz	w0, LBB0_16
; %bb.6:
Lloh18:
	adrp	x8, _XFRMA_ENCAP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _XFRMA_ENCAP@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
Lloh21:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh22:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_nla_data
	ldr	w2, [x24]
	mov	w1, #4
	bl	_kmemdup
	str	x0, [x19, #80]
	cbz	x0, LBB0_13
LBB0_8:
Lloh23:
	adrp	x8, _XFRMA_COADDR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _XFRMA_COADDR@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_nla_data
	ldr	w2, [x24]
	mov	w1, #4
	bl	_kmemdup
	str	x0, [x19, #72]
	cbz	x0, LBB0_13
LBB0_10:
	add	x1, x19, #64
	mov	x0, x21
	bl	_xfrm_mark_get
	mov	x0, x19
	bl	_xfrm_init_state
	mov	x25, x0
	cbnz	w0, LBB0_16
; %bb.11:
Lloh26:
	adrp	x8, _XFRMA_SEC_CTX@GOTPAGE
Lloh27:
	ldr	x8, [x8, _XFRMA_SEC_CTX@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	cbz	x0, LBB0_19
; %bb.12:
	bl	_nla_data
	mov	x1, x0
	mov	x0, x19
	bl	_security_xfrm_state_alloc
	cbz	x0, LBB0_19
LBB0_13:
	mov	w25, #0
	b	LBB0_16
LBB0_14:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_17
LBB0_15:
Lloh32:
	adrp	x8, _XFRMA_ALG_AUTH@GOTPAGE
Lloh33:
	ldr	x8, [x8, _XFRMA_ALG_AUTH@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	ldr	x2, [x21, x8, lsl #3]
	mov	x0, x26
	mov	x1, x27
	bl	_attach_auth
	mov	x25, x0
	cbz	w0, LBB0_4
LBB0_16:
Lloh35:
	adrp	x8, _XFRM_STATE_DEAD@GOTPAGE
Lloh36:
	ldr	x8, [x8, _XFRM_STATE_DEAD@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_xfrm_state_put
LBB0_17:
	mov	x19, #0
	str	w25, [x20]
LBB0_18:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_19:
	ldr	w8, [x23]
	str	w8, [x19, #8]
	ldr	x8, [x22, #8]
	str	x8, [x19, #16]
	ldr	w9, [x22]
Lloh38:
	adrp	x10, _HZ@GOTPAGE
Lloh39:
	ldr	x10, [x10, _HZ@GOTPAGEOFF]
Lloh40:
	ldr	w10, [x10]
	mul	w9, w10, w9
Lloh41:
	adrp	x10, _XFRM_AE_ETH_M@GOTPAGE
Lloh42:
	ldr	x10, [x10, _XFRM_AE_ETH_M@GOTPAGEOFF]
Lloh43:
	ldr	w10, [x10]
	sdiv	w9, w9, w10
	str	w9, [x19]
	str	xzr, [x19, #56]
	ldur	q0, [x19, #24]
	dup.2d	v1, x8
	add.2d	v0, v0, v1
	stur	q0, [x19, #40]
	mov	x0, x19
	mov	x1, x21
	bl	_xfrm_update_ae_params
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_XFRMA_ALG_AEAD,8,3             ; @XFRMA_ALG_AEAD
	.comm	_XFRMA_ALG_AUTH_TRUNC,8,3       ; @XFRMA_ALG_AUTH_TRUNC
	.comm	_XFRMA_ALG_AUTH,8,3             ; @XFRMA_ALG_AUTH
	.comm	_xfrm_ealg_get_byname,4,2       ; @xfrm_ealg_get_byname
	.comm	_XFRMA_ALG_CRYPT,8,3            ; @XFRMA_ALG_CRYPT
	.comm	_xfrm_calg_get_byname,4,2       ; @xfrm_calg_get_byname
	.comm	_XFRMA_ALG_COMP,8,3             ; @XFRMA_ALG_COMP
	.comm	_XFRMA_ENCAP,8,3                ; @XFRMA_ENCAP
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_XFRMA_COADDR,8,3               ; @XFRMA_COADDR
	.comm	_XFRMA_SEC_CTX,8,3              ; @XFRMA_SEC_CTX
	.comm	_HZ,4,2                         ; @HZ
	.comm	_XFRM_AE_ETH_M,4,2              ; @XFRM_AE_ETH_M
	.comm	_XFRM_STATE_DEAD,4,2            ; @XFRM_STATE_DEAD
	.no_dead_strip	_xfrm_state_construct
.subsections_via_symbols
