	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rxkad_issue_challenge
_rxkad_issue_challenge:                 ## @rxkad_issue_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	%r14
	pushq	%rbx
	subq	$304, %rsp                      ## imm = 0x130
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movl	40(%rdi), %edi
	movl	44(%rbx), %r14d
	callq	_key_serial
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	__enter
	movl	40(%rbx), %edi
	callq	_key_validate
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_get_random_bytes
	movl	$2, %edi
	callq	_htonl
	movq	%rax, -216(%rbp)
	movl	(%rbx), %edi
	callq	_htonl
	movq	%rax, -224(%rbp)
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_htonl
	movq	%rax, -232(%rbp)
	movq	$0, -240(%rbp)
	movq	8(%rbx), %rax
	movq	8(%rax), %rax
	movq	%rax, -72(%rbp)
	movl	$4, -104(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -96(%rbp)
	movq	$0, -80(%rbp)
	movl	36(%rbx), %eax
	movl	%eax, -140(%rbp)
	movl	32(%rbx), %eax
	movl	%eax, -144(%rbp)
	movups	%xmm0, -160(%rbp)
	movq	_RXRPC_PACKET_TYPE_CHALLENGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -164(%rbp)
	movl	28(%rbx), %eax
	movl	%eax, -168(%rbp)
	movq	$0, -176(%rbp)
	movl	24(%rbx), %eax
	movl	%eax, -184(%rbp)
	movq	$0, -192(%rbp)
	movl	20(%rbx), %eax
	movl	%eax, -200(%rbp)
	leaq	-208(%rbp), %rax
	movq	%rax, -56(%rbp)
	movl	$104, -64(%rbp)
	leaq	-312(%rbp), %rax
	movq	%rax, -40(%rbp)
	movl	$104, -48(%rbp)
	leaq	16(%rbx), %rdi
	callq	_atomic_inc_return
	movl	%eax, %edi
	callq	_htonl
	movq	%rax, -208(%rbp)
	movq	%rax, %rdi
	callq	_ntohl
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	__proto
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	leaq	-104(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	movl	$208, %r8d
	movl	$2, %ecx
	callq	_kernel_sendmsg
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	leaq	L_.str.3(%rip), %rdi
	callq	__leave
	jmp	LBB0_5
LBB0_1:
	movl	%eax, %r14d
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	__debug
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%r14d, %eax
	addq	$304, %rsp                      ## imm = 0x130
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"{%d,%x}"

	.comm	_RXRPC_PACKET_TYPE_CHALLENGE,4,2 ## @RXRPC_PACKET_TYPE_CHALLENGE
L_.str.1:                               ## @.str.1
	.asciz	"Tx CHALLENGE %%%u"

L_.str.2:                               ## @.str.2
	.asciz	"sendmsg failed: %d"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
L_.str.3:                               ## @.str.3
	.asciz	" = 0"

	.no_dead_strip	_rxkad_issue_challenge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rxkad_issue_challenge
_rxkad_issue_challenge:                 ; @rxkad_issue_challenge
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #336
	.cfi_def_cfa_offset 336
	stp	x28, x27, [sp, #288]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #304]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #320]            ; 16-byte Folded Spill
	add	x29, sp, #320
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w27, -40
	.cfi_offset w28, -48
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldp	w0, w20, [x0, #40]
	bl	_key_serial
	mov	x2, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	__enter
	ldr	w0, [x19, #40]
	bl	_key_validate
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	w20, #4
	mov	x0, x19
	mov	w1, #4
	bl	_get_random_bytes
	mov	w0, #2
	bl	_htonl
	str	x0, [sp, #240]
	ldr	w0, [x19]
	bl	_htonl
	str	x0, [sp, #232]
	mov	w0, #0
	bl	_htonl
	stp	xzr, x0, [sp, #216]
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	str	w20, [sp]
	stp	xzr, x8, [sp, #24]
	stp	xzr, xzr, [sp, #8]
	ldr	d0, [x19, #32]
	str	d0, [sp, #104]
	stp	xzr, xzr, [sp, #88]
Lloh5:
	adrp	x8, _RXRPC_PACKET_TYPE_CHALLENGE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RXRPC_PACKET_TYPE_CHALLENGE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x19, #28]
	stp	w9, w8, [sp, #80]
	str	xzr, [sp, #72]
	ldp	w9, w8, [x19, #20]
	str	w8, [sp, #64]
	str	xzr, [sp, #56]
	str	w9, [sp, #48]
	add	x8, sp, #40
	stur	x8, [x29, #-64]
	mov	w8, #104
	stur	w8, [x29, #-72]
	add	x9, sp, #144
	stur	x9, [x29, #-48]
	add	x0, x19, #16
	stur	w8, [x29, #-56]
	bl	_atomic_inc_return
	bl	_htonl
	str	x0, [sp, #40]
	bl	_ntohl
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__proto
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w0, [x8]
	mov	x1, sp
	sub	x2, x29, #72
	mov	w3, #2
	mov	w4, #208
	bl	_kernel_sendmsg
	tbnz	w0, #31, LBB0_3
; %bb.2:
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__leave
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	mov	x1, x0
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__debug
Lloh14:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldur	x8, [x29, #-40]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #320]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #304]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #288]            ; 16-byte Folded Reload
	add	sp, sp, #336
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"{%d,%x}"

	.comm	_RXRPC_PACKET_TYPE_CHALLENGE,4,2 ; @RXRPC_PACKET_TYPE_CHALLENGE
l_.str.1:                               ; @.str.1
	.asciz	"Tx CHALLENGE %%%u"

l_.str.2:                               ; @.str.2
	.asciz	"sendmsg failed: %d"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
l_.str.3:                               ; @.str.3
	.asciz	" = 0"

	.no_dead_strip	_rxkad_issue_challenge
.subsections_via_symbols
