	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function key_getcomb_ealg
_key_getcomb_ealg:                      ## @key_getcomb_ealg
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$16, %edi
	callq	_PFKEY_ALIGN8
	movq	_SADB_EALG_MAX@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_23
## %bb.1:
	movl	%eax, %ebx
	cltq
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	$1, %r12d
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	testq	%r15, %r15
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_m_cat
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_SADB_EALG_MAX@GOTPCREL(%rip), %r14
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%r12), %eax
	cmpl	(%r14), %r12d
	movl	%eax, %r12d
	jge	LBB0_24
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
                                        ##     Child Loop BB0_14 Depth 2
	movl	%r12d, %edi
	callq	_enc_algorithm_lookup
	testq	%rax, %rax
	je	LBB0_20
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %edi
	movq	%rax, %r13
	callq	__BITS
	movq	_V_ipsec_esp_keymin@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jb	LBB0_20
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movl	4(%r13), %edi
	movq	%rcx, %r14
	callq	__BITS
	movq	(%r14), %rdx
	movq	%rdx, %rcx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	cmpq	%rdx, %rax
	jb	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	callq	__BITS
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	_V_ipsec_esp_auth@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_key_getcomb_ah
	movq	%rax, %rcx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_21
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_MLEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	xorl	%edi, %edi
	cmpl	%esi, %ebx
	setle	%dil
	callq	_IPSEC_ASSERT
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_MGET
	testq	%r14, %r14
	je	LBB0_21
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_M_ALIGN
	movl	%ebx, (%r14)
	movq	$0, 8(%r14)
	movq	_caddr_t@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mtod
	movl	(%r14), %esi
	movq	%rax, %rdi
	callq	_bzero
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r13d, %r13d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addl	(%rax), %r13d
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %eax
	cltd
	idivl	%ebx
	xorl	%edi, %edi
	testl	%edx, %edx
	sete	%dil
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_IPSEC_ASSERT
	testl	%r13d, %r13d
	jle	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	%ebx, %edx
	leaq	-64(%rbp), %rcx
	callq	_m_pulldown
	testq	%rax, %rax
	je	LBB0_21
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	_caddr_t@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_mtod
	movq	%rax, %r12
	movslq	-64(%rbp), %rbx
	shlq	$4, %rbx
	leaq	(%rax,%rbx), %r15
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_bzero
	movq	%r15, %rdi
	callq	_key_getcomb_setlifetime
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, (%r12,%rbx)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 4(%r12,%rbx)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	__BITS
	movq	%rax, 8(%r12,%rbx)
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	addl	%ebx, %r14d
	cmpl	%r13d, %r14d
	jl	LBB0_14
	jmp	LBB0_16
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_21:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.22:
	callq	_m_freem
LBB0_23:
	xorl	%r15d, %r15d
LBB0_24:
	movq	%r15, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SADB_EALG_MAX,4,2              ## @SADB_EALG_MAX
	.comm	_V_ipsec_esp_keymin,8,3         ## @V_ipsec_esp_keymin
	.comm	_V_ipsec_esp_auth,8,3           ## @V_ipsec_esp_auth
	.comm	_MLEN,4,2                       ## @MLEN
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_MT_DATA,4,2                    ## @MT_DATA
	.comm	_caddr_t,4,2                    ## @caddr_t
	.no_dead_strip	_key_getcomb_ealg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function key_getcomb_ealg
_key_getcomb_ealg:                      ; @key_getcomb_ealg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	w0, #16
	bl	_PFKEY_ALIGN8
Lloh0:
	adrp	x25, _SADB_EALG_MAX@GOTPAGE
Lloh1:
	ldr	x25, [x25, _SADB_EALG_MAX@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.1:
	mov	x20, x0
	mov	x22, #0
	mov	x19, #0
	sxtw	x8, w20
	str	x8, [sp]                        ; 8-byte Folded Spill
	mov	w23, #1
Lloh2:
	adrp	x26, _V_ipsec_esp_keymin@GOTPAGE
Lloh3:
	ldr	x26, [x26, _V_ipsec_esp_keymin@GOTPAGEOFF]
Lloh4:
	adrp	x21, _caddr_t@GOTPAGE
Lloh5:
	ldr	x21, [x21, _caddr_t@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh6:
	adrp	x26, _V_ipsec_esp_keymin@GOTPAGE
Lloh7:
	ldr	x26, [x26, _V_ipsec_esp_keymin@GOTPAGEOFF]
	cbz	x19, LBB0_20
; %bb.3:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_m_cat
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh8:
	adrp	x25, _SADB_EALG_MAX@GOTPAGE
Lloh9:
	ldr	x25, [x25, _SADB_EALG_MAX@GOTPAGEOFF]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w8, w23, #1
	ldr	w9, [x25]
	cmp	w23, w9
	mov	x23, x8
	b.ge	LBB0_24
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
                                        ;     Child Loop BB0_18 Depth 2
	mov	x0, x23
	bl	_enc_algorithm_lookup
	cbz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x24, x0
	ldr	w0, [x0]
	bl	__BITS
	ldr	x8, [x26]
	cmp	x0, x8
	b.lo	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x24, #4]
	bl	__BITS
	ldr	x25, [x26]
	cmp	x0, x25
	b.lo	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x24, #4]
	bl	__BITS
	mov	x25, x0
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh10:
	adrp	x8, _V_ipsec_esp_auth@GOTPAGE
Lloh11:
	ldr	x8, [x8, _V_ipsec_esp_auth@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	bl	_key_getcomb_ah
	mov	x22, x0
	cbnz	x0, LBB0_14
	b	LBB0_21
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh13:
	adrp	x8, _MLEN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MLEN@GOTPAGEOFF]
Lloh15:
	ldrsw	x1, [x8]
	cmp	w20, w1
	cset	w0, le
	bl	_IPSEC_ASSERT
Lloh16:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _MT_DATA@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MT_DATA@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_MGET
	cbz	x22, LBB0_21
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	mov	x1, x20
	bl	_M_ALIGN
	str	w20, [x22]
	str	xzr, [x22, #8]
	ldr	w1, [x21]
	mov	x0, x22
	bl	_mtod
	ldr	w1, [x22]
	bl	_bzero
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w28, #0
	mov	x8, x22
LBB0_15:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w9, [x8]
	add	w28, w9, w28
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_15
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	sdiv	w8, w28, w20
	msub	w8, w8, w20, w28
	cmp	w8, #0
	cset	w0, eq
	ldr	x1, [sp]                        ; 8-byte Folded Reload
	bl	_IPSEC_ASSERT
	cmp	w28, #1
	b.lt	LBB0_2
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w26, #0
LBB0_18:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x3, sp, #12
	mov	x0, x22
	mov	x1, x26
	mov	x2, x20
	bl	_m_pulldown
	cbz	x0, LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	w1, [x21]
	bl	_mtod
	ldrsw	x8, [sp, #12]
	add	x27, x0, x8, lsl #4
	mov	x0, x27
	mov	w1, #16
	bl	_bzero
	mov	x0, x27
	bl	_key_getcomb_setlifetime
	stp	w23, w25, [x27]
	ldr	w0, [x24]
	bl	__BITS
	str	x0, [x27, #8]
	add	w26, w26, w20
	cmp	w26, w28
	b.lt	LBB0_18
	b	LBB0_2
LBB0_20:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x19, x22
	b	LBB0_4
LBB0_21:
	cbz	x19, LBB0_24
; %bb.22:
	mov	x0, x19
	bl	_m_freem
LBB0_23:
	mov	x19, #0
LBB0_24:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SADB_EALG_MAX,4,2              ; @SADB_EALG_MAX
	.comm	_V_ipsec_esp_keymin,8,3         ; @V_ipsec_esp_keymin
	.comm	_V_ipsec_esp_auth,8,3           ; @V_ipsec_esp_auth
	.comm	_MLEN,4,2                       ; @MLEN
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_MT_DATA,4,2                    ; @MT_DATA
	.comm	_caddr_t,4,2                    ; @caddr_t
	.no_dead_strip	_key_getcomb_ealg
.subsections_via_symbols
