	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hisi_zip_pf_probe_init
_hisi_zip_pf_probe_init:                ## @hisi_zip_pf_probe_init
	.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	%rdi, %rbx
	movq	16(%rdi), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$8, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, (%rbx)
	movq	%rbx, (%rax)
	movl	8(%rbx), %eax
	cmpl	$129, %eax
	je	LBB0_4
## %bb.5:
	cmpl	$128, %eax
	jne	LBB0_9
## %bb.6:
	movq	_HZIP_QUEUE_NUM_V2@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_HZIP_QUEUE_NUM_V1@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	%rbx, %rdi
	callq	_hisi_zip_set_user_domain_and_cache
	movq	%rbx, %rdi
	callq	_hisi_zip_hw_error_init
	movq	%rbx, %rdi
	callq	_hisi_zip_debug_regs_clear
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HZIP_QUEUE_NUM_V1,4,2          ## @HZIP_QUEUE_NUM_V1
	.comm	_HZIP_QUEUE_NUM_V2,4,2          ## @HZIP_QUEUE_NUM_V2
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_hisi_zip_pf_probe_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hisi_zip_pf_probe_init
_hisi_zip_pf_probe_init:                ; @hisi_zip_pf_probe_init
	.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
	mov	x19, x0
	ldr	x0, [x0, #16]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #8
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	str	x0, [x19]
	str	x19, [x0]
	ldr	w8, [x19, #8]
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.3:
Lloh3:
	adrp	x8, _HZIP_QUEUE_NUM_V2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HZIP_QUEUE_NUM_V2@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh7:
	adrp	x8, _HZIP_QUEUE_NUM_V1@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HZIP_QUEUE_NUM_V1@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	mov	x0, x19
	bl	_hisi_zip_set_user_domain_and_cache
	mov	x0, x19
	bl	_hisi_zip_hw_error_init
	mov	x0, x19
	bl	_hisi_zip_debug_regs_clear
	mov	w0, #0
	b	LBB0_9
LBB0_7:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HZIP_QUEUE_NUM_V1,4,2          ; @HZIP_QUEUE_NUM_V1
	.comm	_HZIP_QUEUE_NUM_V2,4,2          ; @HZIP_QUEUE_NUM_V2
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_hisi_zip_pf_probe_init
.subsections_via_symbols
