	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_drv_init
_be_drv_init:                           ## @be_drv_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	48(%rdi), %r14
	movl	$20, 152(%rdi)
	leaq	160(%rdi), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movq	%r14, %rdi
	movl	$20, %esi
	callq	_dma_alloc_coherent
	movq	%rax, 168(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	$4, 128(%rbx)
	movq	%rax, %rdi
	movl	$16, %esi
	callq	_PTR_ALIGN
	movq	%rax, 144(%rbx)
	movq	160(%rbx), %rdi
	movl	$16, %esi
	callq	_PTR_ALIGN
	movq	%rax, 136(%rbx)
	movl	$4, 104(%rbx)
	leaq	112(%rbx), %rdx
	movl	(%r15), %ecx
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_dma_alloc_coherent
	movq	%rax, 120(%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	_lancer_chip
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	callq	_BE2_chip
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_BE3_chip
LBB0_7:
	movl	$4, 80(%rbx)
	leaq	88(%rbx), %rdx
	movl	(%r15), %ecx
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_dma_alloc_coherent
	movq	%rax, 96(%rbx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.11:
	leaq	72(%rbx), %rdi
	callq	_mutex_init
	leaq	68(%rbx), %rdi
	callq	_mutex_init
	leaq	64(%rbx), %rdi
	callq	_mutex_init
	leaq	60(%rbx), %rdi
	callq	_spin_lock_init
	leaq	56(%rbx), %rdi
	callq	_init_completion
	movq	48(%rbx), %rdi
	callq	_pci_save_state
	leaq	40(%rbx), %rdi
	movq	_be_worker@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movq	_ERR_RECOVERY_ST_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	16(%rbx), %rdi
	movl	%eax, 32(%rbx)
	movq	$0, 24(%rbx)
	movq	_be_err_detection_task@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%rbx)
	movl	$64, 8(%rbx)
	addq	$12, %rbx
	movq	%rbx, %rdi
	callq	_INIT_LIST_HEAD
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_10
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_9
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	104(%rbx), %esi
	movq	120(%rbx), %rdx
	movq	112(%rbx), %rcx
	movq	%r14, %rdi
	callq	_dma_free_coherent
LBB0_9:
	negl	%r15d
	movl	152(%rbx), %esi
	movq	168(%rbx), %rdx
	movq	160(%rbx), %rcx
	movq	%r14, %rdi
	callq	_dma_free_coherent
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_be_worker,4,2                  ## @be_worker
	.comm	_ERR_RECOVERY_ST_NONE,4,2       ## @ERR_RECOVERY_ST_NONE
	.comm	_be_err_detection_task,4,2      ## @be_err_detection_task
	.no_dead_strip	_be_drv_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_drv_init
_be_drv_init:                           ; @be_drv_init
	.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	x19, x0
	ldr	x20, [x0, #48]
	mov	w8, #20
	str	w8, [x0, #152]
	add	x2, x0, #160
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x21]
	mov	x0, x20
	mov	w1, #20
	bl	_dma_alloc_coherent
	str	x0, [x19, #168]
	cbz	x0, LBB0_7
; %bb.1:
	mov	w22, #4
	str	w22, [x19, #128]
	mov	w1, #16
	bl	_PTR_ALIGN
	str	x0, [x19, #144]
	ldr	x0, [x19, #160]
	mov	w1, #16
	bl	_PTR_ALIGN
	str	x0, [x19, #136]
	str	w22, [x19, #104]
	add	x2, x19, #112
	ldr	w3, [x21]
	mov	x0, x20
	mov	w1, #4
	bl	_dma_alloc_coherent
	str	x0, [x19, #120]
	cbz	x0, LBB0_8
; %bb.2:
	mov	x0, x19
	bl	_lancer_chip
	cbnz	x0, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_BE2_chip
	cbnz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_BE3_chip
LBB0_5:
	mov	w8, #4
	str	w8, [x19, #80]
	add	x2, x19, #88
	ldr	w3, [x21]
	mov	x0, x20
	mov	w1, #4
	bl	_dma_alloc_coherent
	str	x0, [x19, #96]
	cbz	x0, LBB0_9
; %bb.6:
	add	x0, x19, #72
	bl	_mutex_init
	add	x0, x19, #68
	bl	_mutex_init
	add	x0, x19, #64
	bl	_mutex_init
	add	x0, x19, #60
	bl	_spin_lock_init
	add	x0, x19, #56
	bl	_init_completion
	ldr	x0, [x19, #48]
	bl	_pci_save_state
	add	x0, x19, #40
Lloh2:
	adrp	x8, _be_worker@GOTPAGE
Lloh3:
	ldr	x8, [x8, _be_worker@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
Lloh5:
	adrp	x8, _ERR_RECOVERY_ST_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERR_RECOVERY_ST_NONE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	add	x0, x19, #16
	str	w8, [x19, #32]
	str	xzr, [x19, #24]
Lloh8:
	adrp	x8, _be_err_detection_task@GOTPAGE
Lloh9:
	ldr	x8, [x8, _be_err_detection_task@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	movi.2s	v0, #1
	str	d0, [x19]
	mov	w8, #64
	str	w8, [x19, #8]
	add	x0, x19, #12
	bl	_INIT_LIST_HEAD
	mov	w21, #0
	b	LBB0_11
LBB0_7:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_8:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w21, [x8]
	b	LBB0_10
LBB0_9:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w21, [x8]
	ldr	w1, [x19, #104]
	ldp	x3, x2, [x19, #112]
	mov	x0, x20
	bl	_dma_free_coherent
LBB0_10:
	neg	w21, w21
	ldr	w1, [x19, #152]
	ldp	x3, x2, [x19, #160]
	mov	x0, x20
	bl	_dma_free_coherent
LBB0_11:
	mov	x0, x21
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_be_worker,4,2                  ; @be_worker
	.comm	_ERR_RECOVERY_ST_NONE,4,2       ; @ERR_RECOVERY_ST_NONE
	.comm	_be_err_detection_task,4,2      ; @be_err_detection_task
	.no_dead_strip	_be_drv_init
.subsections_via_symbols
