	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_acpi_associate             ## -- Begin function ata_acpi_associate
	.p2align	4, 0x90
_ata_acpi_associate:                    ## @ata_acpi_associate
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	20(%rdi), %edi
	callq	_is_pci_dev
	testl	%eax, %eax
	je	LBB0_16
## %bb.1:
	movq	_libata_noacpi@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_16
## %bb.2:
	movl	20(%rbx), %edi
	callq	_DEVICE_ACPI_HANDLE
	movl	%eax, 16(%rbx)
	testl	%eax, %eax
	je	LBB0_16
## %bb.3:
	cmpl	$0, (%rbx)
	jle	LBB0_16
## %bb.4:
	xorl	%r13d, %r13d
	movq	_ata_acpi_dev_dock_ops@GOTPCREL(%rip), %r12
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r13
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movslq	(%rbx), %rax
	cmpq	%rax, %r13
	jge	LBB0_16
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	8(%rbx), %rax
	movq	(%rax,%r13,8), %rbx
	movq	(%rax), %rax
	movq	_ATA_FLAG_ACPI_SATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_ata_acpi_associate_sata_port
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_ata_acpi_associate_ide_port
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_ata_acpi_ap_dock_ops@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdx
	callq	_register_hotplug_dock_device
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_ata_link_max_devices
	testl	%eax, %eax
	jle	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=2
	incq	%r14
	movq	%rbx, %rdi
	callq	_ata_link_max_devices
	cltq
	addq	$24, %r15
	cmpq	%rax, %r14
	jge	LBB0_15
LBB0_12:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %rdx
	movq	8(%rdx,%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	addq	%r15, %rdx
	movq	%r12, %rsi
	callq	_register_hotplug_dock_device
	jmp	LBB0_14
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_libata_noacpi,8,3              ## @libata_noacpi
	.comm	_ATA_FLAG_ACPI_SATA,4,2         ## @ATA_FLAG_ACPI_SATA
	.comm	_ata_acpi_ap_dock_ops,4,2       ## @ata_acpi_ap_dock_ops
	.comm	_ata_acpi_dev_dock_ops,4,2      ## @ata_acpi_dev_dock_ops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_acpi_associate             ; -- Begin function ata_acpi_associate
	.p2align	2
_ata_acpi_associate:                    ; @ata_acpi_associate
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	w0, [x0, #20]
	bl	_is_pci_dev
Lloh0:
	adrp	x8, _libata_noacpi@GOTPAGE
Lloh1:
	ldr	x8, [x8, _libata_noacpi@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	w0, #0
	ccmp	x8, #0, #0, ne
	b.ne	LBB0_14
; %bb.1:
	ldr	w0, [x19, #20]
	bl	_DEVICE_ACPI_HANDLE
	str	w0, [x19, #16]
	cbz	w0, LBB0_14
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.3:
	mov	x23, #0
Lloh3:
	adrp	x24, _ATA_FLAG_ACPI_SATA@GOTPAGE
Lloh4:
	ldr	x24, [x24, _ATA_FLAG_ACPI_SATA@GOTPAGEOFF]
Lloh5:
	adrp	x20, _ata_acpi_dev_dock_ops@GOTPAGE
Lloh6:
	ldr	x20, [x20, _ata_acpi_dev_dock_ops@GOTPAGEOFF]
Lloh7:
	adrp	x21, _ata_acpi_ap_dock_ops@GOTPAGE
Lloh8:
	ldr	x21, [x21, _ata_acpi_ap_dock_ops@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x19]
	cmp	x23, x8
	b.ge	LBB0_14
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	x8, [x19, #8]
	ldr	x22, [x8, x23, lsl #3]
	ldr	x8, [x8]
	ldr	w8, [x8]
	ldr	w9, [x24]
	mov	x0, x22
	tst	w9, w8
	b.eq	LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_ata_acpi_associate_sata_port
	ldr	x0, [x22, #8]
	cbz	x0, LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x21
	mov	x2, x22
	bl	_register_hotplug_dock_device
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #16
	mov	x0, x22
	bl	_ata_link_max_devices
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x25, #0
	mov	x26, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	add	x26, x26, #1
	mov	x0, x22
	bl	_ata_link_max_devices
	add	x25, x25, #24
	cmp	x26, w0, sxtw
	b.ge	LBB0_4
LBB0_11:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x22]
	add	x2, x8, x25
	ldr	x0, [x2, #8]
	cbz	x0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x1, x20
	bl	_register_hotplug_dock_device
	b	LBB0_10
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_ata_acpi_associate_ide_port
	ldr	x0, [x22, #8]
	cbnz	x0, LBB0_7
	b	LBB0_8
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_libata_noacpi,8,3              ; @libata_noacpi
	.comm	_ATA_FLAG_ACPI_SATA,4,2         ; @ATA_FLAG_ACPI_SATA
	.comm	_ata_acpi_ap_dock_ops,4,2       ; @ata_acpi_ap_dock_ops
	.comm	_ata_acpi_dev_dock_ops,4,2      ; @ata_acpi_dev_dock_ops
.subsections_via_symbols
