	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipcomp_compress
_ipcomp_compress:                       ## @ipcomp_compress
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	(%rdi), %r13
	movl	(%rsi), %r12d
	movq	_IPCOMP_SCRATCH_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	8(%rsi), %r14
	xorl	%eax, %eax
	callq	_get_cpu
	movl	%eax, %ebx
	movq	_ipcomp_scratches@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_per_cpu_ptr
	movq	(%rax), %rax
	movl	(%r13), %edi
	movq	%rax, %r13
	movl	%ebx, %esi
	callq	_per_cpu_ptr
	movq	(%rax), %rbx
	xorl	%eax, %eax
	callq	_local_bh_disable
	leaq	-44(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	movq	%r13, %rcx
	callq	_crypto_comp_compress
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_local_bh_enable
	testl	%ebx, %ebx
	jne	LBB0_3
## %bb.1:
	movslq	%r12d, %rax
	movslq	-44(%rbp), %rdx
	leaq	4(%rdx), %rcx
	cmpq	%rax, %rcx
	jae	LBB0_2
## %bb.5:
	addq	$16, %r14
	movq	%r14, %rdi
	movq	%r13, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_put_cpu
	movl	-44(%rbp), %esi
	addl	$4, %esi
	movq	%r15, %rdi
	callq	_pskb_trim
	jmp	LBB0_4
LBB0_2:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_3:
	xorl	%eax, %eax
	callq	_put_cpu
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPCOMP_SCRATCH_SIZE,4,2        ## @IPCOMP_SCRATCH_SIZE
	.comm	_ipcomp_scratches,4,2           ## @ipcomp_scratches
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.no_dead_strip	_ipcomp_compress
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipcomp_compress
_ipcomp_compress:                       ; @ipcomp_compress
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	ldr	x24, [x0]
	ldr	w21, [x1]
Lloh0:
	adrp	x8, _IPCOMP_SCRATCH_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPCOMP_SCRATCH_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	ldr	x20, [x1, #8]
	bl	_get_cpu
	mov	x23, x0
Lloh3:
	adrp	x8, _ipcomp_scratches@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ipcomp_scratches@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_per_cpu_ptr
	ldr	x22, [x0]
	ldr	w0, [x24]
	mov	x1, x23
	bl	_per_cpu_ptr
	ldr	x23, [x0]
	bl	_local_bh_disable
	add	x4, sp, #12
	mov	x0, x23
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_crypto_comp_compress
	mov	x23, x0
	bl	_local_bh_enable
	cbnz	w23, LBB0_4
; %bb.1:
	sxtw	x8, w21
	ldrsw	x2, [sp, #12]
	add	x9, x2, #4
	cmp	x9, x8
	b.hs	LBB0_3
; %bb.2:
	add	x0, x20, #16
	mov	x1, x22
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	bl	_put_cpu
	ldr	w8, [sp, #12]
	add	w1, w8, #4
	mov	x0, x19
	bl	_pskb_trim
	mov	w23, #0
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_4:
	bl	_put_cpu
LBB0_5:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IPCOMP_SCRATCH_SIZE,4,2        ; @IPCOMP_SCRATCH_SIZE
	.comm	_ipcomp_scratches,4,2           ; @ipcomp_scratches
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.no_dead_strip	_ipcomp_compress
.subsections_via_symbols
