	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hpt374_dma_test_irq
_hpt374_dma_test_irq:                   ## @hpt374_dma_test_irq
	.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
	movq	(%rdi), %rbx
	movl	16(%rbx), %edi
	callq	_to_pci_dev
	movl	$0, -12(%rbp)
	movq	8(%rbx), %rsi
	addq	$2, %rsi
	leaq	-12(%rbp), %rdx
	movq	%rax, %rdi
	callq	_pci_read_config_word
	xorl	%eax, %eax
	movzwl	-12(%rbp), %ecx
	testl	$511, %ecx                      ## imm = 0x1FF
	jne	LBB0_2
## %bb.1:
	movq	_ATA_DMA_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_inb
	movl	%eax, %ecx
	movq	_ATA_DMA_INTR@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	testl	%ecx, (%rdx)
	setne	%al
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_DMA_STATUS,8,3             ## @ATA_DMA_STATUS
	.comm	_ATA_DMA_INTR,4,2               ## @ATA_DMA_INTR
	.no_dead_strip	_hpt374_dma_test_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hpt374_dma_test_irq
_hpt374_dma_test_irq:                   ; @hpt374_dma_test_irq
	.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
	ldr	x19, [x0]
	ldr	w0, [x19, #16]
	bl	_to_pci_dev
	str	wzr, [sp, #12]
	ldr	x8, [x19, #8]
	add	x1, x8, #2
	add	x2, sp, #12
	bl	_pci_read_config_word
	mov	w0, #0
	ldrh	w8, [sp, #12]
	tst	w8, #0x1ff
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _ATA_DMA_STATUS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATA_DMA_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inb
Lloh3:
	adrp	x8, _ATA_DMA_INTR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATA_DMA_INTR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w0, ne
LBB0_2:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_DMA_STATUS,8,3             ; @ATA_DMA_STATUS
	.comm	_ATA_DMA_INTR,4,2               ; @ATA_DMA_INTR
	.no_dead_strip	_hpt374_dma_test_irq
.subsections_via_symbols
