	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rxkad_verify_packet_auth
_rxkad_verify_packet_auth:              ## @rxkad_verify_packet_auth
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	__enter
	movq	%rbx, %rdi
	callq	_rxrpc_skb
	movq	%rax, %r12
	xorl	%r15d, %r15d
	leaq	-160(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_skb_cow_data
	cmpl	$16, %eax
	jbe	LBB0_1
## %bb.12:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	__leave
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_1:
	movq	%r14, -120(%rbp)                ## 8-byte Spill
	leaq	-112(%rbp), %r14
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_sg_init_table
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	movl	$8, %ecx
	callq	_skb_to_sgvec
	leaq	-128(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	(%r13), %rax
	movl	(%rax), %eax
	movl	%eax, -140(%rbp)
	movl	-128(%rbp), %eax
	movl	%eax, -144(%rbp)
	movq	$0, -152(%rbp)
	leaq	-152(%rbp), %rdi
	movq	%r14, %rsi
	movq	%r14, %rdx
	movl	$8, %ecx
	callq	_crypto_blkcipher_decrypt_iv
	leaq	-136(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %ecx
	callq	_skb_copy_bits
	movq	_RXKADDATALEN@GOTPCREL(%rip), %rdx
	testq	%rax, %rax
	js	LBB0_6
## %bb.2:
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_skb_pull
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_BUG
LBB0_4:
	movl	-136(%rbp), %edi
	callq	_ntohl
	movl	%eax, %r13d
	movl	%eax, %r14d
	shrl	$16, %r14d
	movl	4(%r12), %edi
	xorl	(%r12), %edi
	callq	_ntohl
	movzwl	%ax, %eax
	cmpl	%eax, %r14d
	jne	LBB0_5
## %bb.8:
	movzwl	%r13w, %esi
	cmpl	(%rbx), %esi
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movq	_RXKADDATALEN@GOTPCREL(%rip), %rdx
	jg	LBB0_7
## %bb.9:
	jge	LBB0_11
## %bb.10:
	movl	%esi, (%rbx)
LBB0_11:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	__leave
	jmp	LBB0_14
LBB0_5:
	movq	_RXKADSEALEDINCON@GOTPCREL(%rip), %rdx
LBB0_6:
	movq	-120(%rbp), %rcx                ## 8-byte Reload
LBB0_7:
	movl	(%rdx), %eax
	movl	%eax, (%rcx)
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	__leave
	movq	_EPROTO@GOTPCREL(%rip), %rax
LBB0_13:
	subl	(%rax), %r15d
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%r15d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_RXKADSEALEDINCON,4,2           ## @RXKADSEALEDINCON
L_.str.1:                               ## @.str.1
	.asciz	" = 0 [dlen=%x]"

	.comm	_RXKADDATALEN,4,2               ## @RXKADDATALEN
L_.str.2:                               ## @.str.2
	.asciz	" = -EPROTO"

	.comm	_EPROTO,4,2                     ## @EPROTO
L_.str.3:                               ## @.str.3
	.asciz	" = -ENOMEM"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_rxkad_verify_packet_auth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rxkad_verify_packet_auth
_rxkad_verify_packet_auth:              ; @rxkad_verify_packet_auth
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	__enter
	mov	x0, x20
	bl	_rxrpc_skb
	mov	x21, x0
	add	x2, sp, #16
	mov	x0, x20
	mov	w1, #0
	bl	_skb_cow_data
	cmp	w0, #16
	b.ls	LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str.3@PAGE
Lloh6:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__leave
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
LBB0_2:
	mov	x1, x0
	add	x0, sp, #56
	bl	_sg_init_table
	add	x1, sp, #56
	mov	x0, x20
	mov	w2, #0
	mov	w3, #8
	bl	_skb_to_sgvec
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x8, [x22]
	ldr	w8, [x8]
	ldr	w9, [sp, #24]
	stp	w9, w8, [sp, #40]
	str	xzr, [sp, #32]
	add	x0, sp, #32
	add	x1, sp, #56
	add	x2, sp, #56
	mov	w3, #8
	bl	_crypto_blkcipher_decrypt_iv
	add	x2, sp, #48
	mov	x0, x20
	mov	w1, #0
	mov	w3, #4
	bl	_skb_copy_bits
	tbnz	x0, #63, LBB0_7
; %bb.3:
	mov	x0, x20
	mov	w1, #4
	bl	_skb_pull
	cbnz	w0, LBB0_5
; %bb.4:
	bl	_BUG
LBB0_5:
	ldr	w0, [sp, #48]
	bl	_ntohl
	mov	x22, x0
	lsr	w23, w0, #16
	ldp	w8, w9, [x21]
	eor	w0, w9, w8
	bl	_ntohl
	cmp	w23, w0, uxth
	b.ne	LBB0_8
; %bb.6:
	and	w8, w22, #0xffff
	ldr	w9, [x20]
	cmp	w8, w9
	b.le	LBB0_13
LBB0_7:
Lloh9:
	adrp	x8, _RXKADDATALEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RXKADDATALEN@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh11:
	adrp	x8, _RXKADSEALEDINCON@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RXKADSEALEDINCON@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__leave
Lloh15:
	adrp	x8, _EPROTO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldur	x8, [x29, #-56]
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_16
; %bb.12:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_13:
	b.ge	LBB0_15
; %bb.14:
	str	w8, [x20]
LBB0_15:
	str	x8, [sp]
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__leave
	mov	w0, #0
	b	LBB0_11
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_RXKADSEALEDINCON,4,2           ; @RXKADSEALEDINCON
l_.str.1:                               ; @.str.1
	.asciz	" = 0 [dlen=%x]"

	.comm	_RXKADDATALEN,4,2               ; @RXKADDATALEN
l_.str.2:                               ; @.str.2
	.asciz	" = -EPROTO"

	.comm	_EPROTO,4,2                     ; @EPROTO
l_.str.3:                               ; @.str.3
	.asciz	" = -ENOMEM"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_rxkad_verify_packet_auth
.subsections_via_symbols
