	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_dsaf_probe
_hns_dsaf_probe:                        ## @hns_dsaf_probe
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$4, %esi
	callq	_hns_dsaf_alloc_dev
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_12
LBB0_2:
	movq	%r14, %rdi
	callq	_hns_dsaf_get_cfg
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:
	movq	%r14, %rdi
	callq	_hns_dsaf_init
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	movq	%r14, %rdi
	callq	_hns_mac_init
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:
	movq	%r14, %rdi
	callq	_hns_ppe_init
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movq	%r14, %rdi
	callq	_hns_dsaf_ae_init
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_hns_ppe_uninit
LBB0_9:
	movq	%r14, %rdi
	callq	_hns_mac_uninit
LBB0_10:
	movq	%r14, %rdi
	callq	_hns_dsaf_free
LBB0_11:
	movq	%r14, %rdi
	callq	_hns_dsaf_free_dev
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%r15d, %r15d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dsaf_probe dsaf_alloc_dev failed, ret = %#x!\n"

	.no_dead_strip	_hns_dsaf_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_dsaf_probe
_hns_dsaf_probe:                        ; @hns_dsaf_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x0
	mov	w1, #4
	bl	_hns_dsaf_alloc_dev
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_PTR_ERR
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_dev_err
	b	LBB0_11
LBB0_2:
	mov	x0, x19
	bl	_hns_dsaf_get_cfg
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.3:
	mov	x0, x19
	bl	_hns_dsaf_init
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.4:
	mov	x0, x19
	bl	_hns_mac_init
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.5:
	mov	x0, x19
	bl	_hns_ppe_init
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_hns_dsaf_ae_init
	mov	x20, x0
	cbz	w0, LBB0_11
; %bb.7:
	mov	x0, x19
	bl	_hns_ppe_uninit
LBB0_8:
	mov	x0, x19
	bl	_hns_mac_uninit
LBB0_9:
	mov	x0, x19
	bl	_hns_dsaf_free
LBB0_10:
	mov	x0, x19
	bl	_hns_dsaf_free_dev
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dsaf_probe dsaf_alloc_dev failed, ret = %#x!\n"

	.no_dead_strip	_hns_dsaf_probe
.subsections_via_symbols
