	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ata_macio_probe
_ata_macio_probe:                       ## @ata_macio_probe
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r12d
	callq	_ofw_bus_get_type
	movq	%rax, %rbx
	movl	%r12d, %edi
	callq	_ofw_bus_get_name
	movq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%r12d, %edi
	callq	_device_get_softc
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	$8, %esi
	callq	_bzero
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	xorl	%ebx, %ebx
	testq	%rax, %rax
	sete	%bl
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %rsi
	cmoveq	%rax, %rsi
	movq	_ATA_WDMA2@GOTPCREL(%rip), %r14
	cmoveq	_ATA_UDMA4@GOTPCREL(%rip), %r14
	addl	$3, %ebx
	movl	%r12d, %edi
	callq	_device_set_desc
	movl	%ebx, (%r15)
	movl	(%r14), %eax
	movl	%eax, 4(%r15)
	movl	%r12d, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ata_probe                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ata"

L_.str.1:                               ## @.str.1
	.asciz	"ide"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.2:                               ## @.str.2
	.asciz	"ata-4"

L_.str.3:                               ## @.str.3
	.asciz	"Apple MacIO Ultra ATA Controller"

	.comm	_ATA_UDMA4,4,2                  ## @ATA_UDMA4
L_.str.4:                               ## @.str.4
	.asciz	"Apple MacIO ATA Controller"

	.comm	_ATA_WDMA2,4,2                  ## @ATA_WDMA2
	.no_dead_strip	_ata_macio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ata_macio_probe
_ata_macio_probe:                       ; @ata_macio_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	bl	_ofw_bus_get_type
	mov	x21, x0
	mov	x0, x19
	bl	_ofw_bus_get_name
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_3
; %bb.2:
Lloh4:
	adrp	x8, _ENXIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, x19
	bl	_device_get_softc
	mov	x21, x0
	mov	w1, #8
	bl	_bzero
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_strcmp
Lloh9:
	adrp	x8, l_.str.4@PAGE
Lloh10:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh11:
	adrp	x9, l_.str.3@PAGE
Lloh12:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	x0, #0
	csel	x1, x9, x8, eq
	mov	w8, #3
	cinc	w20, w8, eq
Lloh13:
	adrp	x8, _ATA_UDMA4@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ATA_UDMA4@GOTPAGEOFF]
Lloh15:
	adrp	x9, _ATA_WDMA2@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ATA_WDMA2@GOTPAGEOFF]
	csel	x22, x8, x9, eq
	mov	x0, x19
	bl	_device_set_desc
	str	w20, [x21]
	ldr	w8, [x22]
	str	w8, [x21, #4]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ata_probe
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ata"

l_.str.1:                               ; @.str.1
	.asciz	"ide"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.2:                               ; @.str.2
	.asciz	"ata-4"

l_.str.3:                               ; @.str.3
	.asciz	"Apple MacIO Ultra ATA Controller"

	.comm	_ATA_UDMA4,4,2                  ; @ATA_UDMA4
l_.str.4:                               ; @.str.4
	.asciz	"Apple MacIO ATA Controller"

	.comm	_ATA_WDMA2,4,2                  ; @ATA_WDMA2
	.no_dead_strip	_ata_macio_probe
.subsections_via_symbols
