	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rxkad_decrypt_response
_rxkad_decrypt_response:                ## @rxkad_decrypt_response
	.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	%r12
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	8(%rdx), %rbx
	movl	(%rbx), %edi
	callq	_ntohl
	movl	%eax, %r12d
	movl	4(%rbx), %edi
	callq	_ntohl
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	__enter
	movq	_rxkad_ci@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	setne	%dil
	callq	_ASSERT
	movq	_rxkad_ci_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	(%rbx), %rdi
	movl	(%r15), %esi
	movl	$16, %edx
	callq	_crypto_blkcipher_setkey
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_BUG
LBB0_2:
	leaq	-88(%rbp), %rdi
	movq	%r15, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	(%rbx), %rax
	movq	%rax, -56(%rbp)
	movl	-88(%rbp), %eax
	movl	%eax, -64(%rbp)
	movq	$0, -72(%rbp)
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_rxkad_sg_set_buf2
	leaq	-72(%rbp), %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	movl	$4, %ecx
	callq	_crypto_blkcipher_decrypt_iv
	movq	_rxkad_ci_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	leaq	L_.str.1(%rip), %rdi
	callq	__leave
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	",,%08x%08x"

	.comm	_rxkad_ci,8,3                   ## @rxkad_ci
	.comm	_rxkad_ci_mutex,4,2             ## @rxkad_ci_mutex
L_.str.1:                               ## @.str.1
	.space	1

	.no_dead_strip	_rxkad_decrypt_response
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rxkad_decrypt_response
_rxkad_decrypt_response:                ; @rxkad_decrypt_response
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x20, x2
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x22, [x2, #8]
	ldr	w0, [x22]
	bl	_ntohl
	mov	x21, x0
	ldr	w0, [x22, #4]
	bl	_ntohl
	mov	x2, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	__enter
Lloh5:
	adrp	x21, _rxkad_ci@GOTPAGE
Lloh6:
	ldr	x21, [x21, _rxkad_ci@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, #0
	cset	w0, ne
	bl	_ASSERT
Lloh7:
	adrp	x0, _rxkad_ci_mutex@GOTPAGE
Lloh8:
	ldr	x0, [x0, _rxkad_ci_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	ldr	x0, [x21]
	ldr	w1, [x20]
	mov	w2, #16
	bl	_crypto_blkcipher_setkey
	tbz	x0, #63, LBB0_2
; %bb.1:
	bl	_BUG
LBB0_2:
	add	x0, sp, #8
	mov	x1, x20
	mov	w2, #16
	bl	_memcpy
	ldr	x8, [x21]
	str	x8, [sp, #40]
	ldr	w8, [sp, #8]
	str	w8, [sp, #32]
	str	xzr, [sp, #24]
	add	x0, sp, #48
	mov	x1, x19
	mov	w2, #4
	bl	_rxkad_sg_set_buf2
	add	x0, sp, #24
	add	x1, sp, #48
	add	x2, sp, #48
	mov	w3, #4
	bl	_crypto_blkcipher_decrypt_iv
Lloh9:
	adrp	x0, _rxkad_ci_mutex@GOTPAGE
Lloh10:
	ldr	x0, [x0, _rxkad_ci_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__leave
	ldur	x8, [x29, #-40]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	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
	add	sp, sp, #112
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	",,%08x%08x"

	.comm	_rxkad_ci,8,3                   ; @rxkad_ci
	.comm	_rxkad_ci_mutex,4,2             ; @rxkad_ci_mutex
l_.str.1:                               ; @.str.1
	.space	1

	.no_dead_strip	_rxkad_decrypt_response
.subsections_via_symbols
