	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xlp_sec_newsession
_xlp_sec_newsession:                    ## @xlp_sec_newsession
	.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, %rbx
	movl	%esi, %r14d
	callq	_device_get_softc
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	%r14d, %edi
	callq	_crypto_get_driver_session
	movq	%rax, %r14
	xorl	%r15d, %r15d
	movl	$15, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%r14), %edi
	movl	(%rax), %esi
	callq	_read_random
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	testl	%r15d, %r15d
	movl	$1, %r15d
	jne	LBB0_2
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_16
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %ecx
	leal	-128(%rcx), %eax
	cmpl	$7, %eax
	ja	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	btl	%eax, %r12d
	jae	LBB0_6
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	testl	%r13d, %r13d
	jne	LBB0_2
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%rbx), %ecx
	movl	%ecx, (%r14)
	movl	$1, %r13d
	testl	%ecx, %ecx
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$4, %eax
	jae	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	cltq
	leaq	L_switch.table.xlp_sec_newsession(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, (%r14)
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	$208, %edx
	btl	%eax, %edx
	jae	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_XLP_SEC_DES_IV_LENGTH@GOTPCREL(%rip), %rax
	cmpl	$134, %ecx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_XLP_SEC_AES_IV_LENGTH@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_16:
	orl	%r15d, %r13d
	jne	LBB0_17
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	(%r14), %eax
	movl	%eax, 8(%r14)
	xorl	%eax, %eax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_XLP_SEC_AES_IV_LENGTH,4,2      ## @XLP_SEC_AES_IV_LENGTH
	.comm	_XLP_SEC_DES_IV_LENGTH,4,2      ## @XLP_SEC_DES_IV_LENGTH
	.no_dead_strip	_xlp_sec_newsession
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.xlp_sec_newsession
L_switch.table.xlp_sec_newsession:
	.long	20                              ## 0x14
	.long	20                              ## 0x14
	.long	16                              ## 0x10
	.long	16                              ## 0x10

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xlp_sec_newsession
_xlp_sec_newsession:                    ; @xlp_sec_newsession
	.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	x19, x2
	mov	x20, x1
	bl	_device_get_softc
	cbz	x19, LBB0_15
; %bb.1:
	cbz	x0, LBB0_15
; %bb.2:
	mov	x0, x20
	bl	_crypto_get_driver_session
	mov	x20, x0
	mov	w21, #0
	mov	w27, #0
	mov	w22, #1
	mov	w23, #208
Lloh0:
	adrp	x24, _XLP_SEC_AES_IV_LENGTH@GOTPAGE
Lloh1:
	ldr	x24, [x24, _XLP_SEC_AES_IV_LENGTH@GOTPAGEOFF]
Lloh2:
	adrp	x25, _XLP_SEC_DES_IV_LENGTH@GOTPAGE
Lloh3:
	ldr	x25, [x25, _XLP_SEC_DES_IV_LENGTH@GOTPAGEOFF]
Lloh4:
	adrp	x26, l_switch.table.xlp_sec_newsession@PAGE
Lloh5:
	add	x26, x26, l_switch.table.xlp_sec_newsession@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w27, #1
	ldr	x19, [x19, #8]
	cbz	x19, LBB0_14
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x19]
	sub	w8, w9, #128
	cmp	w8, #7
	b.hi	LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	w10, w22, w8
	tst	w10, #0xf
	b.eq	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w27, LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x19, #4]
	str	w9, [x20]
	cbnz	w9, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #4
	b.hs	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x26, w8, sxtw #2]
	str	w8, [x20]
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	tst	w10, w23
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20, #4]
	cmp	w9, #134
	csel	x8, x24, x25, eq
	ldr	w1, [x8]
	bl	_read_random
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w21, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w21, #1
	ldr	x19, [x19, #8]
	cbnz	x19, LBB0_4
LBB0_14:
	orr	w8, w27, w21
	cbnz	w8, LBB0_17
LBB0_15:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_16:
	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_17:
	mov	w0, #0
	ldr	w8, [x20]
	str	w8, [x20, #8]
	b	LBB0_16
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_XLP_SEC_AES_IV_LENGTH,4,2      ; @XLP_SEC_AES_IV_LENGTH
	.comm	_XLP_SEC_DES_IV_LENGTH,4,2      ; @XLP_SEC_DES_IV_LENGTH
	.no_dead_strip	_xlp_sec_newsession
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.xlp_sec_newsession
l_switch.table.xlp_sec_newsession:
	.long	20                              ; 0x14
	.long	20                              ; 0x14
	.long	16                              ; 0x10
	.long	16                              ; 0x10

.subsections_via_symbols
