	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_bmdma_mode_filter          ## -- Begin function ata_bmdma_mode_filter
	.p2align	4, 0x90
_ata_bmdma_mode_filter:                 ## @ata_bmdma_mode_filter
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rsi, %rax
	movq	(%rdi), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_1
## %bb.2:
	popq	%rbp
	retq
LBB0_1:
	movq	_ATA_MASK_MWDMA@GOTPCREL(%rip), %rcx
	movq	_ATA_MASK_UDMA@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	orq	(%rcx), %rdx
	notq	%rdx
	andq	%rdx, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_MASK_MWDMA,8,3             ## @ATA_MASK_MWDMA
	.comm	_ATA_MASK_UDMA,8,3              ## @ATA_MASK_UDMA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_bmdma_mode_filter          ; -- Begin function ata_bmdma_mode_filter
	.p2align	2
_ata_bmdma_mode_filter:                 ; @ata_bmdma_mode_filter
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x1
	ret
LBB0_2:
Lloh0:
	adrp	x8, _ATA_MASK_MWDMA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATA_MASK_MWDMA@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _ATA_MASK_UDMA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATA_MASK_UDMA@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	orr	x8, x9, x8
	bic	x1, x1, x8
	mov	x0, x1
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_MASK_MWDMA,8,3             ; @ATA_MASK_MWDMA
	.comm	_ATA_MASK_UDMA,8,3              ; @ATA_MASK_UDMA
.subsections_via_symbols
