	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ata_dev_same_device
_ata_dev_same_device:                   ## @ata_dev_same_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ATA_ID_PROD_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	incl	%r12d
	leaq	(%r12,%r12), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_ATA_ID_SERNO_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	incl	%ebx
	leaq	(%rbx,%rbx), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movl	(%r14), %ecx
	cmpl	%r13d, %ecx
	jne	LBB0_1
## %bb.2:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %r14
	movq	_ATA_ID_PROD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r12d, %ecx
	callq	_ata_id_c_string
	movq	%r15, %r13
	addq	%r12, %r13
	movq	_ATA_ID_PROD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%r12d, %ecx
	callq	_ata_id_c_string
	movq	_ATA_ID_SERNO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	%ebx, %ecx
	callq	_ata_id_c_string
	addq	%rbx, %r12
	movq	_ATA_ID_SERNO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	%ebx, %ecx
	callq	_ata_id_c_string
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%ebx, %ebx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rcx
	movq	%r13, %r8
	jmp	LBB0_7
LBB0_1:
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_ata_dev_printk
	jmp	LBB0_8
LBB0_4:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r12, %r8
LBB0_7:
	xorl	%eax, %eax
	callq	_ata_dev_printk
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	$1, %ebx
	jmp	LBB0_8
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_ID_PROD_LEN,4,2            ## @ATA_ID_PROD_LEN
	.comm	_ATA_ID_SERNO_LEN,4,2           ## @ATA_ID_SERNO_LEN
	.comm	_KERN_INFO,4,2                  ## @KERN_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"class mismatch %d != %d\n"

	.comm	_ATA_ID_PROD,4,2                ## @ATA_ID_PROD
	.comm	_ATA_ID_SERNO,4,2               ## @ATA_ID_SERNO
L_.str.1:                               ## @.str.1
	.asciz	"model number mismatch '%s' != '%s'\n"

L_.str.2:                               ## @.str.2
	.asciz	"serial number mismatch '%s' != '%s'\n"

	.no_dead_strip	_ata_dev_same_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ata_dev_same_device
_ata_dev_same_device:                   ; @ata_dev_same_device
	.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	x21, x2
                                        ; kill: def $w1 killed $w1 def $x1
	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]
Lloh3:
	adrp	x8, _ATA_ID_PROD_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATA_ID_PROD_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w24, w8, #1
	lsl	x8, x24, #1
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x3fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh8:
	adrp	x8, _ATA_ID_SERNO_LEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ATA_ID_SERNO_LEN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	add	w23, w8, #1
	lsl	x8, x23, #1
	mov	x9, x8
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x3fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	w9, [x0]
	cmp	w9, w1
	b.ne	LBB0_3
; %bb.1:
	ldr	x26, [x19, #8]
Lloh13:
	adrp	x27, _ATA_ID_PROD@GOTPAGE
Lloh14:
	ldr	x27, [x27, _ATA_ID_PROD@GOTPAGEOFF]
	ldr	w2, [x27]
	mov	x0, x26
	mov	x1, x20
	mov	x3, x24
	bl	_ata_id_c_string
	add	x25, x20, x24
	ldr	w2, [x27]
	mov	x0, x21
	mov	x1, x25
	mov	x3, x24
	bl	_ata_id_c_string
Lloh15:
	adrp	x27, _ATA_ID_SERNO@GOTPAGE
Lloh16:
	ldr	x27, [x27, _ATA_ID_SERNO@GOTPAGEOFF]
	ldr	w2, [x27]
	mov	x0, x26
	mov	x1, x22
	mov	x3, x23
	bl	_ata_id_c_string
	add	x24, x22, x23
	ldr	w2, [x27]
	mov	x0, x21
	mov	x1, x24
	mov	x3, x23
	bl	_ata_id_c_string
	mov	x0, x20
	mov	x1, x25
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.2:
Lloh17:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	stp	x20, x25, [sp, #-16]!
Lloh20:
	adrp	x2, l_.str.1@PAGE
Lloh21:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh22:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	stp	x9, x1, [sp, #-16]!
Lloh25:
	adrp	x2, l_.str@PAGE
Lloh26:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x8
	b	LBB0_7
LBB0_4:
	mov	x0, x22
	mov	x1, x24
	bl	_strcmp
	cbz	x0, LBB0_10
; %bb.5:
Lloh27:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	stp	x22, x24, [sp, #-16]!
Lloh30:
	adrp	x2, l_.str.2@PAGE
Lloh31:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_6:
	mov	x0, x19
LBB0_7:
	bl	_ata_dev_printk
	add	sp, sp, #16
	mov	w0, #0
LBB0_8:
	ldur	x8, [x29, #-88]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.9:
	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_10:
	mov	w0, #1
	b	LBB0_8
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_ID_PROD_LEN,4,2            ; @ATA_ID_PROD_LEN
	.comm	_ATA_ID_SERNO_LEN,4,2           ; @ATA_ID_SERNO_LEN
	.comm	_KERN_INFO,4,2                  ; @KERN_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"class mismatch %d != %d\n"

	.comm	_ATA_ID_PROD,4,2                ; @ATA_ID_PROD
	.comm	_ATA_ID_SERNO,4,2               ; @ATA_ID_SERNO
l_.str.1:                               ; @.str.1
	.asciz	"model number mismatch '%s' != '%s'\n"

l_.str.2:                               ; @.str.2
	.asciz	"serial number mismatch '%s' != '%s'\n"

	.no_dead_strip	_ata_dev_same_device
.subsections_via_symbols
