	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nx842_crypto_decompress        ## -- Begin function nx842_crypto_decompress
	.p2align	4, 0x90
_nx842_crypto_decompress:               ## @nx842_crypto_decompress
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rcx, %rbx
	movl	%edx, %r15d
	movq	%rsi, %r14
	callq	_crypto_tfm_ctx
	movq	%rax, %r12
	movq	32(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rdi
	callq	_check_constraints
	movq	%r14, -96(%rbp)
	movl	%r15d, -120(%rbp)
	movq	%rbx, -104(%rbp)
	movl	(%r13), %ebx
	movl	%ebx, -116(%rbp)
	movl	$0, -112(%rbp)
	movl	$0, (%r13)
	movq	%r12, %rdi
	callq	_spin_lock_bh
	movl	20(%r14), %edi
	callq	_be16_to_cpu
	movq	_NX842_CRYPTO_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movl	(%r14), %esi
	testl	%esi, %esi
	je	LBB0_6
## %bb.2:
	movq	_NX842_CRYPTO_GROUP_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	%edx, %esi
	jle	LBB0_10
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_7
LBB0_4:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edi
	callq	_cpu_to_be32
	movl	%eax, -80(%rbp)
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movl	%r15d, %edi
	callq	_cpu_to_be32
	movl	%eax, -76(%rbp)
	movl	$0, -72(%rbp)
	leaq	-120(%rbp), %rsi
	leaq	-80(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r12, %rdi
	xorl	%r8d, %r8d
	callq	_decompress
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
LBB0_5:
	movl	-112(%rbp), %edx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%edx, (%rax)
	leaq	L_.str.2(%rip), %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_pr_debug
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_err
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_8:
	subl	(%rax), %ebx
LBB0_9:
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	%esi, %edi
	callq	_NX842_CRYPTO_HEADER_SIZE
	cmpl	%r15d, %eax
	jbe	LBB0_12
## %bb.11:
	movq	_EOVERFLOW@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_12:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movq	%r12, %rdi
	addq	$8, %rdi
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_memcpy
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	16(%r12), %rdx
	addq	%r15, %rdx
	movq	%r12, %rdi
	leaq	-120(%rbp), %rsi
	leaq	-48(%rbp), %rcx
	movq	%r14, %r8
	callq	_decompress
	addq	$12, %r15
	testl	%eax, %eax
	jne	LBB0_17
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	cmpq	%rax, %r13
	jge	LBB0_5
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	%eax, %eax
	incq	%r13
	cmpq	%rax, %r13
	jne	LBB0_13
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	24(%r12), %edi
	callq	_be16_to_cpu
	movq	%rax, %r14
	jmp	LBB0_13
LBB0_17:
	movl	%eax, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_NX842_CRYPTO_MAGIC,8,3         ## @NX842_CRYPTO_MAGIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"header has no groups\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NX842_CRYPTO_GROUP_MAX,4,2     ## @NX842_CRYPTO_GROUP_MAX
L_.str.1:                               ## @.str.1
	.asciz	"header has too many groups %x, max %x\n"

	.comm	_EOVERFLOW,4,2                  ## @EOVERFLOW
L_.str.2:                               ## @.str.2
	.asciz	"decompress total slen %x dlen %x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nx842_crypto_decompress        ; -- Begin function nx842_crypto_decompress
	.p2align	2
_nx842_crypto_decompress:               ; @nx842_crypto_decompress
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x21, x4
	mov	x23, x3
	mov	x20, x2
	mov	x22, x1
	bl	_crypto_tfm_ctx
	mov	x19, x0
	ldr	x8, [x0, #32]
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	w8, [sp, #40]
	add	x0, sp, #40
	bl	_check_constraints
	stp	x23, x22, [sp, #64]
	ldr	w23, [x21]
	stp	w20, w23, [sp, #48]
	str	wzr, [sp, #56]
	str	wzr, [x21]
	mov	x0, x19
	bl	_spin_lock_bh
	ldr	w0, [x22, #20]
	bl	_be16_to_cpu
Lloh0:
	adrp	x8, _NX842_CRYPTO_MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NX842_CRYPTO_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
	ldr	w0, [x22]
	cbz	w0, LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _NX842_CRYPTO_GROUP_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NX842_CRYPTO_GROUP_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.le	LBB0_10
; %bb.3:
	stp	x0, x8, [sp]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_4:
	mov	x0, x23
	bl	_cpu_to_be32
	str	w0, [sp, #24]
	mov	x0, x20
	bl	_cpu_to_be32
	stp	w0, wzr, [sp, #28]
	add	x1, sp, #48
	add	x2, sp, #24
	add	x3, sp, #40
	mov	x0, x19
	mov	x4, #0
	bl	_decompress
	mov	x24, x0
	cbnz	w0, LBB0_9
LBB0_5:
	ldr	w2, [sp, #56]
	str	w2, [x21]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_pr_debug
	mov	w24, #0
	b	LBB0_9
LBB0_6:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
LBB0_7:
	bl	_pr_err
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_9:
	mov	x0, x19
	bl	_spin_unlock_bh
	mov	x0, x24
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_10:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_NX842_CRYPTO_HEADER_SIZE
	cmp	w0, w20
	b.ls	LBB0_12
; %bb.11:
Lloh14:
	adrp	x8, _EOVERFLOW@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EOVERFLOW@GOTPAGEOFF]
	b	LBB0_8
LBB0_12:
	mov	x2, x0
	add	x23, x19, #8
	mov	x0, x23
	mov	x1, x22
	bl	_memcpy
	mov	x25, #0
	mov	x26, #0
	mov	x22, #0
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x19, #16]
	add	x2, x8, x25
	add	x1, sp, #48
	add	x3, sp, #40
	mov	x0, x19
	mov	x4, x22
	bl	_decompress
	add	x25, x25, #12
	cbnz	w0, LBB0_17
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x23]
	cmp	x26, x8
	b.ge	LBB0_5
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	and	x8, x8, #0xffffffff
	add	x26, x26, #1
	cmp	x26, x8
	b.ne	LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w0, [x19, #24]
	bl	_be16_to_cpu
	mov	x22, x0
	b	LBB0_13
LBB0_17:
	mov	x24, x0
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_NX842_CRYPTO_MAGIC,8,3         ; @NX842_CRYPTO_MAGIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"header has no groups\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NX842_CRYPTO_GROUP_MAX,4,2     ; @NX842_CRYPTO_GROUP_MAX
l_.str.1:                               ; @.str.1
	.asciz	"header has too many groups %x, max %x\n"

	.comm	_EOVERFLOW,4,2                  ; @EOVERFLOW
l_.str.2:                               ; @.str.2
	.asciz	"decompress total slen %x dlen %x\n"

.subsections_via_symbols
