	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rxkad_init_connection_security
_rxkad_init_connection_security:        ## @rxkad_init_connection_security
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	40(%rdi), %r14d
	movq	32(%rdi), %rdi
	callq	_key_serial
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	__enter
	movq	32(%rbx), %rax
	movq	(%rax), %r15
	movl	8(%r15), %eax
	movl	%eax, 24(%rbx)
	movq	_CRYPTO_ALG_ASYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rdi
	xorl	%esi, %esi
	callq	_crypto_alloc_blkcipher
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.2(%rip), %rdi
	callq	__debug
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_2:
	movq	(%r15), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_crypto_blkcipher_setkey
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_BUG
LBB0_4:
	movl	(%rbx), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_5
## %bb.7:
	movabsq	$17179869192, %rax              ## imm = 0x400000008
	movq	%rax, 4(%rbx)
	addl	$4, 12(%rbx)
	jmp	LBB0_8
LBB0_5:
	cmpl	$128, %eax
	jne	LBB0_6
LBB0_8:
	movq	%r14, 16(%rbx)
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_6:
	movq	_EKEYREJECTED@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	callq	__leave
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"{%d},{%x}"

L_.str.1:                               ## @.str.1
	.asciz	"pcbc(fcrypt)"

	.comm	_CRYPTO_ALG_ASYNC,4,2           ## @CRYPTO_ALG_ASYNC
L_.str.2:                               ## @.str.2
	.asciz	"no cipher"

	.comm	_EKEYREJECTED,4,2               ## @EKEYREJECTED
L_.str.3:                               ## @.str.3
	.asciz	" = %d"

	.no_dead_strip	_rxkad_init_connection_security
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function rxkad_init_connection_security
lCPI0_0:
	.long	8                               ; 0x8
	.long	4                               ; 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_rxkad_init_connection_security:        ; @rxkad_init_connection_security
	.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
	ldr	w20, [x0, #40]
	ldr	x0, [x0, #32]
	bl	_key_serial
	mov	x2, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	__enter
	ldr	x8, [x19, #32]
	ldr	x21, [x8]
	ldr	w8, [x21, #8]
	str	w8, [x19, #24]
Lloh2:
	adrp	x8, _CRYPTO_ALG_ASYNC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CRYPTO_ALG_ASYNC@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #0
	bl	_crypto_alloc_blkcipher
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__debug
	mov	x0, x20
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_9
LBB0_2:
	ldr	x8, [x21]
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #4
	bl	_crypto_blkcipher_setkey
	tbz	x0, #63, LBB0_4
; %bb.3:
	bl	_BUG
LBB0_4:
	ldr	w8, [x19]
	sub	w9, w8, #129
	cmp	w9, #2
	b.hs	LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, lCPI0_0@PAGE
Lloh10:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x19, #4]
	ldr	w8, [x19, #12]
	add	w8, w8, #4
	str	w8, [x19, #12]
	b	LBB0_7
LBB0_6:
	cmp	w8, #128
	b.ne	LBB0_8
LBB0_7:
	mov	w21, #0
	str	x20, [x19, #16]
	b	LBB0_9
LBB0_8:
Lloh11:
	adrp	x8, _EKEYREJECTED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EKEYREJECTED@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x21
	bl	__leave
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"{%d},{%x}"

l_.str.1:                               ; @.str.1
	.asciz	"pcbc(fcrypt)"

	.comm	_CRYPTO_ALG_ASYNC,4,2           ; @CRYPTO_ALG_ASYNC
l_.str.2:                               ; @.str.2
	.asciz	"no cipher"

	.comm	_EKEYREJECTED,4,2               ; @EKEYREJECTED
l_.str.3:                               ; @.str.3
	.asciz	" = %d"

	.no_dead_strip	_rxkad_init_connection_security
.subsections_via_symbols
