	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_ctrl_init
_be_ctrl_init:                          ## @be_ctrl_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	8(%rdi), %rdi
	movq	_SLI_INTF_REG_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_pci_read_config_dword
	movl	-28(%rbp), %eax
	movq	_SLI_INTF_FAMILY_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	movq	_SLI_INTF_FAMILY_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	movl	%edx, (%rbx)
	movq	_SLI_INTF_FT_MASK@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	setne	%dl
	movl	%edx, 4(%rbx)
	movq	%rbx, %rdi
	callq	_be_map_pci_bars
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movl	$20, 80(%rbx)
	movq	8(%rbx), %rdi
	leaq	88(%rbx), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movl	$20, %esi
	callq	_dma_alloc_coherent
	movq	%rax, 96(%rbx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	$4, 56(%rbx)
	movq	%rax, %rdi
	movl	$16, %esi
	callq	_PTR_ALIGN
	movq	%rax, 72(%rbx)
	movq	88(%rbx), %rdi
	movl	$16, %esi
	callq	_PTR_ALIGN
	movq	%rax, 64(%rbx)
	movq	72(%rbx), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	$4, 32(%rbx)
	movq	8(%rbx), %rdi
	leaq	40(%rbx), %rdx
	movq	___GFP_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	orl	(%r15), %ecx
	movl	$4, %esi
	callq	_dma_alloc_coherent
	movq	%rax, 48(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	leaq	28(%rbx), %rdi
	callq	_mutex_init
	leaq	24(%rbx), %rdi
	callq	_spin_lock_init
	leaq	20(%rbx), %rdi
	callq	_spin_lock_init
	leaq	16(%rbx), %rdi
	callq	_init_completion
	movq	8(%rbx), %rdi
	callq	_pci_save_state
	jmp	LBB0_6
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_5
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	8(%rbx), %rdi
	movl	80(%rbx), %esi
	movq	96(%rbx), %rdx
	movq	88(%rbx), %rcx
	callq	_dma_free_coherent
LBB0_5:
	negl	%r14d
	movq	%rbx, %rdi
	callq	_be_unmap_pci_bars
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SLI_INTF_REG_OFFSET,4,2        ## @SLI_INTF_REG_OFFSET
	.comm	_SLI_INTF_FAMILY_MASK,4,2       ## @SLI_INTF_FAMILY_MASK
	.comm	_SLI_INTF_FAMILY_SHIFT,4,2      ## @SLI_INTF_FAMILY_SHIFT
	.comm	_SLI_INTF_FT_MASK,4,2           ## @SLI_INTF_FT_MASK
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	___GFP_ZERO,4,2                 ## @__GFP_ZERO
	.no_dead_strip	_be_ctrl_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_ctrl_init
_be_ctrl_init:                          ; @be_ctrl_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x0, [x0, #8]
Lloh0:
	adrp	x8, _SLI_INTF_REG_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SLI_INTF_REG_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_pci_read_config_dword
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _SLI_INTF_FAMILY_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SLI_INTF_FAMILY_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh6:
	adrp	x10, _SLI_INTF_FAMILY_SHIFT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SLI_INTF_FAMILY_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	asr	w9, w9, w10
	str	w9, [x19]
Lloh9:
	adrp	x9, _SLI_INTF_FT_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SLI_INTF_FT_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_be_map_pci_bars
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.1:
	mov	w8, #20
	str	w8, [x19, #80]
	ldr	x0, [x19, #8]
	add	x2, x19, #88
Lloh12:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x20]
	mov	w1, #20
	bl	_dma_alloc_coherent
	str	x0, [x19, #96]
	cbz	x0, LBB0_4
; %bb.2:
	mov	w21, #4
	str	w21, [x19, #56]
	mov	w1, #16
	bl	_PTR_ALIGN
	str	x0, [x19, #72]
	ldr	x0, [x19, #88]
	mov	w1, #16
	bl	_PTR_ALIGN
	str	x0, [x19, #64]
	ldr	x0, [x19, #72]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	str	w21, [x19, #32]
	ldr	x0, [x19, #8]
	add	x2, x19, #40
	ldr	w8, [x20]
Lloh14:
	adrp	x9, ___GFP_ZERO@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___GFP_ZERO@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	w1, #4
	bl	_dma_alloc_coherent
	str	x0, [x19, #48]
	cbz	x0, LBB0_5
; %bb.3:
	add	x0, x19, #28
	bl	_mutex_init
	add	x0, x19, #24
	bl	_spin_lock_init
	add	x0, x19, #20
	bl	_spin_lock_init
	add	x0, x19, #16
	bl	_init_completion
	ldr	x0, [x19, #8]
	bl	_pci_save_state
	mov	w20, #0
	b	LBB0_7
LBB0_4:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
	b	LBB0_6
LBB0_5:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w20, [x8]
	ldr	x0, [x19, #8]
	ldr	w1, [x19, #80]
	ldp	x3, x2, [x19, #88]
	bl	_dma_free_coherent
LBB0_6:
	neg	w20, w20
	mov	x0, x19
	bl	_be_unmap_pci_bars
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_SLI_INTF_REG_OFFSET,4,2        ; @SLI_INTF_REG_OFFSET
	.comm	_SLI_INTF_FAMILY_MASK,4,2       ; @SLI_INTF_FAMILY_MASK
	.comm	_SLI_INTF_FAMILY_SHIFT,4,2      ; @SLI_INTF_FAMILY_SHIFT
	.comm	_SLI_INTF_FT_MASK,4,2           ; @SLI_INTF_FT_MASK
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	___GFP_ZERO,4,2                 ; @__GFP_ZERO
	.no_dead_strip	_be_ctrl_init
.subsections_via_symbols
