	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ata_probe
_ata_probe:                             ## @ata_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	(%rsi), %eax
	movq	_PARTN_BITS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	(%rdx), %rcx
	cltq
	movq	(%rcx,%rax,8), %rbx
	movq	_IDE_DFLAG_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_10
## %bb.1:
	movq	8(%rbx), %rax
	movq	_ide_disk@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_request_module
	movq	8(%rbx), %rax
LBB0_3:
	movq	_ide_cdrom@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	_ide_optical@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	callq	_request_module
	movq	8(%rbx), %rax
LBB0_6:
	movq	_ide_tape@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	callq	_request_module
	movq	8(%rbx), %rax
LBB0_8:
	movq	_ide_floppy@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rdi
	callq	_request_module
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PARTN_BITS,4,2                 ## @PARTN_BITS
	.comm	_IDE_DFLAG_PRESENT,4,2          ## @IDE_DFLAG_PRESENT
	.comm	_ide_disk,8,3                   ## @ide_disk
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ide-disk"

	.comm	_ide_cdrom,8,3                  ## @ide_cdrom
	.comm	_ide_optical,8,3                ## @ide_optical
L_.str.1:                               ## @.str.1
	.asciz	"ide-cd"

	.comm	_ide_tape,8,3                   ## @ide_tape
L_.str.2:                               ## @.str.2
	.asciz	"ide-tape"

	.comm	_ide_floppy,8,3                 ## @ide_floppy
L_.str.3:                               ## @.str.3
	.asciz	"ide-floppy"

	.no_dead_strip	_ata_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ata_probe
_ata_probe:                             ; @ata_probe
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _PARTN_BITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PARTN_BITS@GOTPAGEOFF]
	ldr	w9, [x1]
Lloh2:
	ldr	w8, [x8]
	asr	w8, w9, w8
	ldr	x9, [x2]
	ldr	x19, [x9, w8, sxtw #3]
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _IDE_DFLAG_PRESENT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IDE_DFLAG_PRESENT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.1:
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _ide_disk@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ide_disk@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_request_module
	ldr	x8, [x19, #8]
LBB0_3:
Lloh11:
	adrp	x9, _ide_cdrom@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ide_cdrom@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	adrp	x10, _ide_optical@GOTPAGE
Lloh15:
	ldr	x10, [x10, _ide_optical@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.4:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_request_module
	ldr	x8, [x19, #8]
LBB0_5:
Lloh19:
	adrp	x9, _ide_tape@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ide_tape@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_request_module
	ldr	x8, [x19, #8]
LBB0_7:
Lloh24:
	adrp	x9, _ide_floppy@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ide_floppy@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
Lloh27:
	adrp	x0, l_.str.3@PAGE
Lloh28:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_request_module
LBB0_9:
	mov	x0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_PARTN_BITS,4,2                 ; @PARTN_BITS
	.comm	_IDE_DFLAG_PRESENT,4,2          ; @IDE_DFLAG_PRESENT
	.comm	_ide_disk,8,3                   ; @ide_disk
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ide-disk"

	.comm	_ide_cdrom,8,3                  ; @ide_cdrom
	.comm	_ide_optical,8,3                ; @ide_optical
l_.str.1:                               ; @.str.1
	.asciz	"ide-cd"

	.comm	_ide_tape,8,3                   ; @ide_tape
l_.str.2:                               ; @.str.2
	.asciz	"ide-tape"

	.comm	_ide_floppy,8,3                 ; @ide_floppy
l_.str.3:                               ; @.str.3
	.asciz	"ide-floppy"

	.no_dead_strip	_ata_probe
.subsections_via_symbols
