	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scc_host_init
_scc_host_init:                         ## @scc_host_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
	movl	16(%rdi), %edi
	callq	_to_pci_dev
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_scc_reset_controller
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	_ATA_DMA_MASK@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_pci_set_dma_mask
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_pci_set_consistent_dma_mask
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movq	(%rcx), %rdi
	movq	_SCC_BMID_BAR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	callq	_scc_setup_ports
	movq	%r14, %rdi
	callq	_pci_set_master
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_DMA_MASK,4,2               ## @ATA_DMA_MASK
	.comm	_SCC_BMID_BAR,8,3               ## @SCC_BMID_BAR
	.no_dead_strip	_scc_host_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scc_host_init
_scc_host_init:                         ; @scc_host_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	x20, x0
	ldr	w0, [x0, #16]
	bl	_to_pci_dev
	mov	x19, x0
	mov	x0, x20
	bl	_scc_reset_controller
	cbnz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x21, _ATA_DMA_MASK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ATA_DMA_MASK@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_pci_set_dma_mask
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_pci_set_consistent_dma_mask
	cbnz	w0, LBB0_4
; %bb.3:
	ldp	x9, x8, [x20]
	ldr	x0, [x8]
Lloh2:
	adrp	x8, _SCC_BMID_BAR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SCC_BMID_BAR@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	w1, [x9, x8, lsl #2]
	bl	_scc_setup_ports
	mov	x0, x19
	bl	_pci_set_master
	mov	w0, #0
LBB0_4:
	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	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_DMA_MASK,4,2               ; @ATA_DMA_MASK
	.comm	_SCC_BMID_BAR,8,3               ; @SCC_BMID_BAR
	.no_dead_strip	_scc_host_init
.subsections_via_symbols
