	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hisi_zip_register_to_crypto    ## -- Begin function hisi_zip_register_to_crypto
	.p2align	4, 0x90
_hisi_zip_register_to_crypto:           ## @hisi_zip_register_to_crypto
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_hisi_zip_acomp_zlib@GOTPCREL(%rip), %rdi
	callq	_crypto_register_acomp
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_5
LBB0_2:
	movq	_hisi_zip_acomp_gzip@GOTPCREL(%rip), %rdi
	callq	_crypto_register_acomp
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	movq	_hisi_zip_acomp_zlib@GOTPCREL(%rip), %rdi
	callq	_crypto_unregister_acomp
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hisi_zip_acomp_zlib,4,2        ## @hisi_zip_acomp_zlib
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Zlib acomp algorithm registration failed\n"

	.comm	_hisi_zip_acomp_gzip,4,2        ## @hisi_zip_acomp_gzip
L_.str.1:                               ## @.str.1
	.asciz	"Gzip acomp algorithm registration failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hisi_zip_register_to_crypto    ; -- Begin function hisi_zip_register_to_crypto
	.p2align	2
_hisi_zip_register_to_crypto:           ; @hisi_zip_register_to_crypto
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x0, _hisi_zip_acomp_zlib@GOTPAGE
Lloh1:
	ldr	x0, [x0, _hisi_zip_acomp_zlib@GOTPAGEOFF]
	bl	_crypto_register_acomp
	cbz	w0, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_4
LBB0_2:
Lloh4:
	adrp	x0, _hisi_zip_acomp_gzip@GOTPAGE
Lloh5:
	ldr	x0, [x0, _hisi_zip_acomp_gzip@GOTPAGEOFF]
	bl	_crypto_register_acomp
	mov	x19, x0
	cbz	w0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
Lloh8:
	adrp	x0, _hisi_zip_acomp_zlib@GOTPAGE
Lloh9:
	ldr	x0, [x0, _hisi_zip_acomp_zlib@GOTPAGEOFF]
	bl	_crypto_unregister_acomp
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_hisi_zip_acomp_zlib,4,2        ; @hisi_zip_acomp_zlib
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Zlib acomp algorithm registration failed\n"

	.comm	_hisi_zip_acomp_gzip,4,2        ; @hisi_zip_acomp_gzip
l_.str.1:                               ; @.str.1
	.asciz	"Gzip acomp algorithm registration failed\n"

.subsections_via_symbols
