	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sata_pmp_same_pmp
_sata_pmp_same_pmp:                     ## @sata_pmp_same_pmp
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	(%rdi), %r14
	movq	%r14, %rdi
	callq	_sata_pmp_gscr_vendor
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_sata_pmp_gscr_vendor
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_sata_pmp_gscr_devid
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_sata_pmp_gscr_devid
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_sata_pmp_gscr_ports
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_sata_pmp_gscr_ports
	cmpq	%rbx, %r15
	jne	LBB0_1
## %bb.2:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	cmpq	%r8, %rcx
	jne	LBB0_3
## %bb.4:
	movl	$1, %ecx
	cmpl	%eax, %r14d
	je	LBB0_7
## %bb.5:
	movq	_KERN_INFO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r13, %rdi
	movl	%r14d, %ecx
	movl	%eax, %r8d
	jmp	LBB0_6
LBB0_1:
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	movl	%r15d, %ecx
	movl	%ebx, %r8d
	jmp	LBB0_6
LBB0_3:
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
                                        ## kill: def $r8d killed $r8d killed $r8
LBB0_6:
	callq	_ata_dev_printk
	xorl	%ecx, %ecx
LBB0_7:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KERN_INFO,4,2                  ## @KERN_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Port Multiplier vendor mismatch '0x%x' != '0x%x'\n"

L_.str.1:                               ## @.str.1
	.asciz	"Port Multiplier device ID mismatch '0x%x' != '0x%x'\n"

L_.str.2:                               ## @.str.2
	.asciz	"Port Multiplier nr_ports mismatch '0x%x' != '0x%x'\n"

	.no_dead_strip	_sata_pmp_same_pmp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sata_pmp_same_pmp
_sata_pmp_same_pmp:                     ; @sata_pmp_same_pmp
	.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	x25, x1
	mov	x19, x0
	ldr	x24, [x0]
	mov	x0, x24
	bl	_sata_pmp_gscr_vendor
	mov	x20, x0
	mov	x0, x25
	bl	_sata_pmp_gscr_vendor
	mov	x21, x0
	mov	x0, x24
	bl	_sata_pmp_gscr_devid
	mov	x22, x0
	mov	x0, x25
	bl	_sata_pmp_gscr_devid
	mov	x23, x0
	mov	x0, x24
	bl	_sata_pmp_gscr_ports
	mov	x24, x0
	mov	x0, x25
	bl	_sata_pmp_gscr_ports
	cmp	x20, x21
	b.ne	LBB0_4
; %bb.1:
	cmp	x22, x23
	b.ne	LBB0_5
; %bb.2:
	mov	x4, x0
	cmp	w24, w0
	b.ne	LBB0_6
; %bb.3:
	mov	w0, #1
	b	LBB0_8
LBB0_4:
Lloh0:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	mov	x4, x21
	b	LBB0_7
LBB0_5:
Lloh5:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x22
	mov	x4, x23
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x3, x24
LBB0_7:
	bl	_ata_dev_printk
	mov	w0, #0
LBB0_8:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_KERN_INFO,4,2                  ; @KERN_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Port Multiplier vendor mismatch '0x%x' != '0x%x'\n"

l_.str.1:                               ; @.str.1
	.asciz	"Port Multiplier device ID mismatch '0x%x' != '0x%x'\n"

l_.str.2:                               ; @.str.2
	.asciz	"Port Multiplier nr_ports mismatch '0x%x' != '0x%x'\n"

	.no_dead_strip	_sata_pmp_same_pmp
.subsections_via_symbols
