	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pacpi_discover_modes
_pacpi_discover_modes:                  ## @pacpi_discover_modes
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	leaq	-32(%rbp), %r15
	movq	%r15, %rsi
	callq	_ata_acpi_gtm
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ata_acpi_gtm_xfermask
	movq	_ATA_SHIFT_UDMA@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%eax, %edx
	shrl	%cl, %edx
	testb	$-8, %dl
	je	LBB0_2
## %bb.1:
	movq	_ATA_CBL_PATA80@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rbx)
LBB0_2:
	movl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_SHIFT_UDMA,4,2             ## @ATA_SHIFT_UDMA
	.comm	_ATA_CBL_PATA80,4,2             ## @ATA_CBL_PATA80
	.no_dead_strip	_pacpi_discover_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pacpi_discover_modes
_pacpi_discover_modes:                  ; @pacpi_discover_modes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	str	w8, [sp, #8]
	add	x1, sp, #8
	bl	_ata_acpi_gtm
	add	x1, sp, #8
	mov	x0, x20
	bl	_ata_acpi_gtm_xfermask
Lloh0:
	adrp	x8, _ATA_SHIFT_UDMA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATA_SHIFT_UDMA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsr	w8, w0, w8
	tst	w8, #0xf8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ATA_CBL_PATA80@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATA_CBL_PATA80@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_2:
	mov	w0, w0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_SHIFT_UDMA,4,2             ; @ATA_SHIFT_UDMA
	.comm	_ATA_CBL_PATA80,4,2             ; @ATA_CBL_PATA80
	.no_dead_strip	_pacpi_discover_modes
.subsections_via_symbols
