	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_pio_mode_abuse
_set_pio_mode_abuse:                    ## @set_pio_mode_abuse
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	xorl	%eax, %eax
	cmpl	$99, %esi
	jle	LBB0_1
## %bb.4:
	movq	_IDE_HFLAG_ABUSE_DMA_MODES@GOTPCREL(%rip), %rcx
	leal	-100(%rsi), %edx
	cmpl	$3, %edx
	jb	LBB0_7
## %bb.5:
	addl	$-200, %esi
	cmpl	$3, %esi
	jb	LBB0_7
LBB0_8:
	popq	%rbp
	retq
LBB0_1:
	leal	-6(%rsi), %ecx
	cmpl	$2, %ecx
	jb	LBB0_6
## %bb.2:
	addl	$-8, %esi
	cmpl	$2, %esi
	jae	LBB0_8
## %bb.3:
	movq	_IDE_HFLAG_ABUSE_PREFETCH@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_6:
	movq	_IDE_HFLAG_ABUSE_FAST_DEVSEL@GOTPCREL(%rip), %rcx
LBB0_7:
	movl	(%rcx), %ecx
	xorl	%eax, %eax
	testl	%ecx, (%rdi)
	setne	%al
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDE_HFLAG_ABUSE_DMA_MODES,4,2  ## @IDE_HFLAG_ABUSE_DMA_MODES
	.comm	_IDE_HFLAG_ABUSE_PREFETCH,4,2   ## @IDE_HFLAG_ABUSE_PREFETCH
	.comm	_IDE_HFLAG_ABUSE_FAST_DEVSEL,4,2 ## @IDE_HFLAG_ABUSE_FAST_DEVSEL
	.no_dead_strip	_set_pio_mode_abuse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_pio_mode_abuse
_set_pio_mode_abuse:                    ; @set_pio_mode_abuse
	.cfi_startproc
; %bb.0:
	mov	w8, #0
	cmp	w1, #99
	b.le	LBB0_4
; %bb.1:
Lloh0:
	adrp	x9, _IDE_HFLAG_ABUSE_DMA_MODES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IDE_HFLAG_ABUSE_DMA_MODES@GOTPAGEOFF]
	sub	w10, w1, #100
	cmp	w10, #3
	b.lo	LBB0_8
; %bb.2:
	sub	w10, w1, #200
	cmp	w10, #3
	b.lo	LBB0_8
LBB0_3:
	mov	x0, x8
	ret
LBB0_4:
	sub	w9, w1, #6
	cmp	w9, #2
	b.lo	LBB0_7
; %bb.5:
	sub	w9, w1, #8
	cmp	w9, #2
	b.hs	LBB0_3
; %bb.6:
Lloh2:
	adrp	x9, _IDE_HFLAG_ABUSE_PREFETCH@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IDE_HFLAG_ABUSE_PREFETCH@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh4:
	adrp	x9, _IDE_HFLAG_ABUSE_FAST_DEVSEL@GOTPAGE
Lloh5:
	ldr	x9, [x9, _IDE_HFLAG_ABUSE_FAST_DEVSEL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x0]
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	mov	x0, x8
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IDE_HFLAG_ABUSE_DMA_MODES,4,2  ; @IDE_HFLAG_ABUSE_DMA_MODES
	.comm	_IDE_HFLAG_ABUSE_PREFETCH,4,2   ; @IDE_HFLAG_ABUSE_PREFETCH
	.comm	_IDE_HFLAG_ABUSE_FAST_DEVSEL,4,2 ; @IDE_HFLAG_ABUSE_FAST_DEVSEL
	.no_dead_strip	_set_pio_mode_abuse
.subsections_via_symbols
