	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rxkad_respond_to_challenge
_rxkad_respond_to_challenge:            ## @rxkad_respond_to_challenge
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r12
	movl	40(%rdi), %ebx
	movq	32(%rdi), %rdi
	callq	_key_serial
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	__enter
	movq	32(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	callq	_key_validate
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	_RXKADPACKETSHORT@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%r13, %rdi
	callq	_rxrpc_skb
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	leaq	-72(%rbp), %rdx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$12, %ecx
	callq	_skb_copy_bits
	testq	%rax, %rax
	js	LBB0_8
## %bb.5:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	-64(%rbp), %edi
	callq	_ntohl
	movq	%rax, %r14
	movl	-68(%rbp), %edi
	callq	_ntohl
	movq	%rax, %r15
	movl	-72(%rbp), %edi
	callq	_ntohl
	movq	%rax, %r13
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_ntohl
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	movq	%r13, %r8
	callq	__proto
	movq	_RXKAD_VERSION@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_6
## %bb.10:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	cmpq	%r13, (%r12)
	jge	LBB0_12
## %bb.11:
	movq	_RXKADLEVELFAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	__leave
	jmp	LBB0_9
LBB0_3:
	movl	%eax, %ebx
	movq	_RXKADEXPIRED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	jmp	LBB0_21
LBB0_6:
	movq	_RXKADINCONSISTENCY@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%rax), %r14
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_8:
	movq	%r14, (%r15)
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	__leave
LBB0_9:
	movq	_EPROTO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	32(%r12), %rax
	movq	(%rax), %r13
	leaq	-136(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movq	_RXKAD_VERSION@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
	movl	28(%r12), %eax
	movl	%eax, -84(%rbp)
	movl	24(%r12), %eax
	movl	%eax, -88(%rbp)
	movq	8(%r12), %rdi
	callq	_htonl
	movq	%rax, -96(%rbp)
	movq	16(%r12), %rax
	movq	(%rax), %rcx
	movl	$0, %edx
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.13:
	movl	(%rcx), %edx
LBB0_14:
	movq	-104(%rbp), %rcx
	movl	%edx, (%rcx)
	movq	8(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_16
## %bb.15:
	movl	(%rdx), %ebx
LBB0_16:
	movl	%ebx, 4(%rcx)
	movq	16(%rax), %rsi
	xorl	%edx, %edx
	movl	$0, %ebx
	testq	%rsi, %rsi
	je	LBB0_18
## %bb.17:
	movl	(%rsi), %ebx
LBB0_18:
	movl	%ebx, 8(%rcx)
	movq	24(%rax), %rax
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movl	(%rax), %edx
LBB0_20:
	movl	%edx, 12(%rcx)
	incq	%r15
	movq	%r15, %rdi
	callq	_htonl
	movq	%rax, -112(%rbp)
	movq	(%r12), %rdi
	callq	_htonl
	movq	%rax, -120(%rbp)
	movq	(%r13), %rax
	movq	(%rax), %rdi
	callq	_htonl
	movq	%rax, -128(%rbp)
	movq	(%r13), %rax
	movq	8(%rax), %rdi
	callq	_htonl
	movq	%rax, -136(%rbp)
	leaq	-136(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_rxkad_calc_response_checksum
	movq	(%r13), %rdx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_rxkad_encrypt_response
	movq	(%r13), %rcx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_rxkad_send_response
	movl	%eax, %ebx
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"{%d,%x}"

L_.str.1:                               ## @.str.1
	.asciz	" = -EPROTO [no key]"

	.comm	_EPROTO,4,2                     ## @EPROTO
	.comm	_RXKADEXPIRED,8,3               ## @RXKADEXPIRED
	.comm	_RXKADPACKETSHORT,8,3           ## @RXKADPACKETSHORT
L_.str.2:                               ## @.str.2
	.asciz	"Rx CHALLENGE %%%u { v=%u n=%u ml=%u }"

	.comm	_RXKADINCONSISTENCY,8,3         ## @RXKADINCONSISTENCY
	.comm	_RXKAD_VERSION,8,3              ## @RXKAD_VERSION
	.comm	_RXKADLEVELFAIL,8,3             ## @RXKADLEVELFAIL
L_.str.3:                               ## @.str.3
	.asciz	" = -EPROTO [%d]"

	.no_dead_strip	_rxkad_respond_to_challenge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rxkad_respond_to_challenge
_rxkad_respond_to_challenge:            ; @rxkad_respond_to_challenge
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	mov	x22, x2
	mov	x21, x1
	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	x0, [x19, #32]
	cbz	x0, LBB0_6
; %bb.1:
	bl	_key_validate
	tbnz	w0, #31, LBB0_7
; %bb.2:
Lloh2:
	adrp	x8, _RXKADPACKETSHORT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RXKADPACKETSHORT@GOTPAGEOFF]
Lloh4:
	ldr	x23, [x8]
	mov	x0, x21
	bl	_rxrpc_skb
	mov	x20, x0
	add	x2, sp, #80
	mov	x0, x21
	mov	w1, #0
	mov	w3, #12
	bl	_skb_copy_bits
	tbnz	x0, #63, LBB0_10
; %bb.3:
	ldr	w0, [sp, #88]
	bl	_ntohl
	mov	x24, x0
	ldr	w0, [sp, #84]
	bl	_ntohl
	mov	x21, x0
	ldr	w0, [sp, #80]
	bl	_ntohl
	mov	x23, x0
	ldr	w0, [x20]
	bl	_ntohl
	mov	x1, x0
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x2, x24
	mov	x3, x21
	mov	x4, x23
	bl	__proto
Lloh7:
	adrp	x25, _RXKAD_VERSION@GOTPAGE
Lloh8:
	ldr	x25, [x25, _RXKAD_VERSION@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x24, x8
	b.ne	LBB0_8
; %bb.4:
	ldr	x8, [x19]
	cmp	x8, x23
	b.ge	LBB0_13
; %bb.5:
Lloh9:
	adrp	x8, _RXKADLEVELFAIL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RXKADLEVELFAIL@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_7:
Lloh13:
	adrp	x8, _RXKADEXPIRED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RXKADEXPIRED@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	str	x8, [x22]
	b	LBB0_12
LBB0_8:
Lloh16:
	adrp	x8, _RXKADINCONSISTENCY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RXKADINCONSISTENCY@GOTPAGEOFF]
LBB0_9:
	ldr	x23, [x8]
LBB0_10:
	str	x23, [x22]
	str	x23, [sp]
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_11:
	bl	__leave
Lloh20:
	adrp	x8, _EPROTO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_13:
	ldr	x8, [x19, #32]
	ldr	x22, [x8]
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	ldr	x8, [x25]
	str	x8, [sp, #72]
	ldr	d0, [x19, #24]
	str	d0, [sp, #64]
	ldr	x0, [x19, #8]
	bl	_htonl
	str	x0, [sp, #56]
	ldr	x8, [x19, #16]
	ldr	x9, [x8]
	cbz	x9, LBB0_15
; %bb.14:
	ldr	w10, [x9]
	b	LBB0_16
LBB0_15:
	mov	w10, #0
LBB0_16:
	ldr	x9, [sp, #48]
	str	w10, [x9]
	ldr	x10, [x8, #8]
	cbz	x10, LBB0_18
; %bb.17:
	ldr	w10, [x10]
LBB0_18:
	str	w10, [x9, #4]
	ldr	x10, [x8, #16]
	cbz	x10, LBB0_20
; %bb.19:
	ldr	w10, [x10]
LBB0_20:
	str	w10, [x9, #8]
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_22
; %bb.21:
	ldr	w8, [x8]
LBB0_22:
	str	w8, [x9, #12]
	add	x0, x21, #1
	bl	_htonl
	str	x0, [sp, #40]
	ldr	x0, [x19]
	bl	_htonl
	str	x0, [sp, #32]
	ldr	x8, [x22]
	ldr	x0, [x8]
	bl	_htonl
	str	x0, [sp, #24]
	ldr	x8, [x22]
	ldr	x0, [x8, #8]
	bl	_htonl
	str	x0, [sp, #16]
	add	x0, sp, #16
	bl	_rxkad_calc_response_checksum
	ldr	x2, [x22]
	add	x1, sp, #16
	mov	x0, x19
	bl	_rxkad_encrypt_response
	ldr	x3, [x22]
	add	x2, sp, #16
	mov	x0, x19
	mov	x1, x20
	bl	_rxkad_send_response
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"{%d,%x}"

l_.str.1:                               ; @.str.1
	.asciz	" = -EPROTO [no key]"

	.comm	_EPROTO,4,2                     ; @EPROTO
	.comm	_RXKADEXPIRED,8,3               ; @RXKADEXPIRED
	.comm	_RXKADPACKETSHORT,8,3           ; @RXKADPACKETSHORT
l_.str.2:                               ; @.str.2
	.asciz	"Rx CHALLENGE %%%u { v=%u n=%u ml=%u }"

	.comm	_RXKADINCONSISTENCY,8,3         ; @RXKADINCONSISTENCY
	.comm	_RXKAD_VERSION,8,3              ; @RXKAD_VERSION
	.comm	_RXKADLEVELFAIL,8,3             ; @RXKADLEVELFAIL
l_.str.3:                               ; @.str.3
	.asciz	" = -EPROTO [%d]"

	.no_dead_strip	_rxkad_respond_to_challenge
.subsections_via_symbols
