	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scc_ide_setup_pci_device
_scc_ide_setup_pci_device:              ## @scc_ide_setup_pci_device
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	callq	_pci_get_drvdata
	movq	%rax, %rbx
	leaq	-72(%rbp), %rdi
	movq	%rdi, -40(%rbp)
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	-56(%rbp), %rax
	movq	8(%rbx), %rcx
	addq	$32, %rcx
	movq	%rcx, (%rax)
	movq	8(%rbx), %rcx
	addq	$36, %rcx
	movq	%rcx, 8(%rax)
	movq	8(%rbx), %rcx
	addq	$40, %rcx
	movq	%rcx, 16(%rax)
	movq	8(%rbx), %rcx
	addq	$44, %rcx
	movq	%rcx, 24(%rax)
	movq	8(%rbx), %rcx
	addq	$48, %rcx
	movq	%rcx, 32(%rax)
	movq	8(%rbx), %rcx
	addq	$52, %rcx
	movq	%rcx, 40(%rax)
	movq	8(%rbx), %rcx
	addq	$56, %rcx
	movq	%rcx, 48(%rax)
	movq	8(%rbx), %rcx
	addq	$60, %rcx
	movq	%rcx, 56(%rax)
	movq	8(%rbx), %rcx
	addq	$64, %rcx
	movq	%rcx, 64(%rax)
	movl	4(%r15), %eax
	movl	%eax, -64(%rbp)
	movq	%r15, -72(%rbp)
	leaq	-40(%rbp), %rsi
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_ide_host_add
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	-48(%rbp), %rcx
	movq	%rcx, (%rbx)
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_4
## %bb.3:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_scc_ide_setup_pci_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scc_ide_setup_pci_device
_scc_ide_setup_pci_device:              ; @scc_ide_setup_pci_device
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	bl	_pci_get_drvdata
	mov	x19, x0
	mov	x8, sp
	str	x8, [sp, #32]
	mov	x0, sp
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	x8, [sp, #16]
	ldr	x9, [x19, #8]
	add	x9, x9, #32
	str	x9, [x8]
	ldr	x9, [x19, #8]
	add	x9, x9, #36
	str	x9, [x8, #8]
	ldr	x9, [x19, #8]
	add	x9, x9, #40
	str	x9, [x8, #16]
	ldr	x9, [x19, #8]
	add	x9, x9, #44
	str	x9, [x8, #24]
	ldr	x9, [x19, #8]
	add	x9, x9, #48
	str	x9, [x8, #32]
	ldr	x9, [x19, #8]
	add	x9, x9, #52
	str	x9, [x8, #40]
	ldr	x9, [x19, #8]
	add	x9, x9, #56
	str	x9, [x8, #48]
	ldr	x9, [x19, #8]
	add	x9, x9, #60
	str	x9, [x8, #56]
	ldr	x9, [x19, #8]
	add	x9, x9, #64
	str	x9, [x8, #64]
	ldr	w8, [x21, #4]
	str	w8, [sp, #8]
	str	x21, [sp]
	add	x1, sp, #32
	add	x3, sp, #24
	mov	x0, x20
	mov	w2, #1
	bl	_ide_host_add
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x8, [sp, #24]
	str	x8, [x19]
LBB0_2:
	ldr	x8, [sp, #40]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_scc_ide_setup_pci_device
.subsections_via_symbols
