	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv_swncq_slave_config
_nv_swncq_slave_config:                 ## @nv_swncq_slave_config
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	32(%rdi), %edi
	callq	_ata_shost_to_port
	movq	%rax, %r15
	movq	16(%rax), %rax
	movl	(%rax), %edi
	callq	_to_pci_dev
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movq	_ATA_ID_PROD_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	incl	%ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_ata_scsi_slave_config
	movl	%eax, %r14d
	movq	(%r12), %r13
	movq	_ATA_MAX_DEVICES@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jae	LBB0_12
## %bb.1:
	cmpq	$0, 24(%r12)
	jne	LBB0_12
## %bb.2:
	cmpq	$0, 16(%r12)
	je	LBB0_3
LBB0_12:
	movq	-88(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_ATA_FLAG_NCQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_12
## %bb.4:
	movq	8(%r15), %rsi
	shlq	$4, %r13
	leaq	(%rsi,%r13), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rax
	movq	_ATA_DEV_ATAPI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.5:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rax
	movq	_PCI_DEVICE_ID_NVIDIA_NFORCE_MCP51_SATA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_PCI_DEVICE_ID_NVIDIA_NFORCE_MCP51_SATA2@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%r15b
	orb	%cl, %r15b
	movq	_PCI_DEVICE_ID_NVIDIA_NFORCE_MCP55_SATA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movq	_PCI_DEVICE_ID_NVIDIA_NFORCE_MCP55_SATA2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.9:
	testb	%r15b, %r15b
	je	LBB0_12
	jmp	LBB0_10
LBB0_7:
	leaq	-60(%rbp), %rdx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	$8, %esi
	callq	_pci_read_config_byte
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	cmpl	$163, -60(%rbp)
	jl	LBB0_10
## %bb.8:
	xorb	$1, %r15b
	jne	LBB0_12
LBB0_10:
	movl	8(%rsi,%r13), %edi
	movq	_ATA_ID_PROD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%ebx, %ecx
	callq	_ata_id_c_string
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	$6, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movq	_SCSI_QDEPTH_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_ata_scsi_change_queue_depth
	movq	_KERN_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r12), %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_ata_dev_printk
	jmp	LBB0_12
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_ID_PROD_LEN,4,2            ## @ATA_ID_PROD_LEN
	.comm	_ATA_MAX_DEVICES,8,3            ## @ATA_MAX_DEVICES
	.comm	_ATA_FLAG_NCQ,4,2               ## @ATA_FLAG_NCQ
	.comm	_ATA_DEV_ATAPI,8,3              ## @ATA_DEV_ATAPI
	.comm	_PCI_DEVICE_ID_NVIDIA_NFORCE_MCP51_SATA,8,3 ## @PCI_DEVICE_ID_NVIDIA_NFORCE_MCP51_SATA
	.comm	_PCI_DEVICE_ID_NVIDIA_NFORCE_MCP51_SATA2,8,3 ## @PCI_DEVICE_ID_NVIDIA_NFORCE_MCP51_SATA2
	.comm	_PCI_DEVICE_ID_NVIDIA_NFORCE_MCP55_SATA,8,3 ## @PCI_DEVICE_ID_NVIDIA_NFORCE_MCP55_SATA
	.comm	_PCI_DEVICE_ID_NVIDIA_NFORCE_MCP55_SATA2,8,3 ## @PCI_DEVICE_ID_NVIDIA_NFORCE_MCP55_SATA2
	.comm	_ATA_ID_PROD,4,2                ## @ATA_ID_PROD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Maxtor"

	.comm	_SCSI_QDEPTH_DEFAULT,4,2        ## @SCSI_QDEPTH_DEFAULT
	.comm	_KERN_NOTICE,4,2                ## @KERN_NOTICE
L_.str.1:                               ## @.str.1
	.asciz	"Disabling SWNCQ mode (depth %x)\n"

	.no_dead_strip	_nv_swncq_slave_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv_swncq_slave_config
_nv_swncq_slave_config:                 ; @nv_swncq_slave_config
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	w0, [x0, #32]
	bl	_ata_shost_to_port
	mov	x23, x0
	ldr	x8, [x0, #16]
	ldr	w0, [x8]
	bl	_to_pci_dev
	mov	x24, x0
	mov	x25, sp
Lloh3:
	adrp	x8, _ATA_ID_PROD_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATA_ID_PROD_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w21, w8, #1
	mov	x9, x21
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	mov	x0, x19
	bl	_ata_scsi_slave_config
	mov	x20, x0
	ldr	x26, [x19]
Lloh8:
	adrp	x8, _ATA_MAX_DEVICES@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ATA_MAX_DEVICES@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x26, x8
	b.hs	LBB0_3
; %bb.1:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
LBB0_3:
	mov	sp, x25
	ldur	x8, [x29, #-88]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.4:
	mov	x0, x20
	sub	sp, x29, #80
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w8, [x23]
Lloh14:
	adrp	x9, _ATA_FLAG_NCQ@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ATA_FLAG_NCQ@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.6:
	ldr	x27, [x23, #8]
	add	x23, x27, x26, lsl #4
	ldr	x8, [x23]
Lloh17:
	adrp	x9, _ATA_DEV_ATAPI@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ATA_DEV_ATAPI@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.7:
	ldr	x8, [x24]
Lloh20:
	adrp	x9, _PCI_DEVICE_ID_NVIDIA_NFORCE_MCP51_SATA@GOTPAGE
Lloh21:
	ldr	x9, [x9, _PCI_DEVICE_ID_NVIDIA_NFORCE_MCP51_SATA@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
Lloh23:
	adrp	x10, _PCI_DEVICE_ID_NVIDIA_NFORCE_MCP51_SATA2@GOTPAGE
Lloh24:
	ldr	x10, [x10, _PCI_DEVICE_ID_NVIDIA_NFORCE_MCP51_SATA2@GOTPAGEOFF]
	cmp	x8, x9
Lloh25:
	ldr	x9, [x10]
	ccmp	x8, x9, #4, ne
	cset	w28, eq
Lloh26:
	adrp	x9, _PCI_DEVICE_ID_NVIDIA_NFORCE_MCP55_SATA@GOTPAGE
Lloh27:
	ldr	x9, [x9, _PCI_DEVICE_ID_NVIDIA_NFORCE_MCP55_SATA@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
Lloh29:
	adrp	x10, _PCI_DEVICE_ID_NVIDIA_NFORCE_MCP55_SATA2@GOTPAGE
Lloh30:
	ldr	x10, [x10, _PCI_DEVICE_ID_NVIDIA_NFORCE_MCP55_SATA2@GOTPAGEOFF]
Lloh31:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_10
; %bb.8:
	sub	x2, x29, #92
	mov	x0, x24
	mov	w1, #8
	bl	_pci_read_config_byte
	ldur	w8, [x29, #-92]
	cmp	w8, #163
	b.lt	LBB0_11
; %bb.9:
	eor	w8, w28, #0x1
	tbnz	w8, #0, LBB0_3
	b	LBB0_11
LBB0_10:
	cbz	w28, LBB0_3
LBB0_11:
	add	x8, x27, x26, lsl #4
	ldr	w0, [x8, #8]
Lloh32:
	adrp	x8, _ATA_ID_PROD@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ATA_ID_PROD@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	x1, x22
	mov	x3, x21
	bl	_ata_id_c_string
Lloh35:
	adrp	x1, l_.str@PAGE
Lloh36:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	w2, #6
	bl	_strncmp
	cbnz	x0, LBB0_3
; %bb.12:
Lloh37:
	adrp	x8, _SCSI_QDEPTH_DEFAULT@GOTPAGE
Lloh38:
	ldr	x8, [x8, _SCSI_QDEPTH_DEFAULT@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #1
	bl	_ata_scsi_change_queue_depth
Lloh40:
	adrp	x8, _KERN_NOTICE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _KERN_NOTICE@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	ldr	w3, [x19, #8]
Lloh43:
	adrp	x2, l_.str.1@PAGE
Lloh44:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_ata_dev_printk
	b	LBB0_3
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_ID_PROD_LEN,4,2            ; @ATA_ID_PROD_LEN
	.comm	_ATA_MAX_DEVICES,8,3            ; @ATA_MAX_DEVICES
	.comm	_ATA_FLAG_NCQ,4,2               ; @ATA_FLAG_NCQ
	.comm	_ATA_DEV_ATAPI,8,3              ; @ATA_DEV_ATAPI
	.comm	_PCI_DEVICE_ID_NVIDIA_NFORCE_MCP51_SATA,8,3 ; @PCI_DEVICE_ID_NVIDIA_NFORCE_MCP51_SATA
	.comm	_PCI_DEVICE_ID_NVIDIA_NFORCE_MCP51_SATA2,8,3 ; @PCI_DEVICE_ID_NVIDIA_NFORCE_MCP51_SATA2
	.comm	_PCI_DEVICE_ID_NVIDIA_NFORCE_MCP55_SATA,8,3 ; @PCI_DEVICE_ID_NVIDIA_NFORCE_MCP55_SATA
	.comm	_PCI_DEVICE_ID_NVIDIA_NFORCE_MCP55_SATA2,8,3 ; @PCI_DEVICE_ID_NVIDIA_NFORCE_MCP55_SATA2
	.comm	_ATA_ID_PROD,4,2                ; @ATA_ID_PROD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Maxtor"

	.comm	_SCSI_QDEPTH_DEFAULT,4,2        ; @SCSI_QDEPTH_DEFAULT
	.comm	_KERN_NOTICE,4,2                ; @KERN_NOTICE
l_.str.1:                               ; @.str.1
	.asciz	"Disabling SWNCQ mode (depth %x)\n"

	.no_dead_strip	_nv_swncq_slave_config
.subsections_via_symbols
