	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hpt3xx_disable_fast_irq
_hpt3xx_disable_fast_irq:               ## @hpt3xx_disable_fast_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_pci_get_drvdata
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	xorl	%edx, %edx
	cmpq	8(%rcx), %r15
	sete	%dl
	movq	(%rax,%rdx,8), %rbx
	movq	$0, -32(%rbp)
	incq	%r14
	leaq	-32(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_pci_read_config_byte
	movq	_HPT374@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jge	LBB0_1
## %bb.2:
	movq	_HPT370@GOTPCREL(%rip), %rcx
	movq	-32(%rbp), %rax
	cmpq	(%rcx), %rbx
	jge	LBB0_3
## %bb.4:
	movq	%rax, %rdx
	andq	$-129, %rdx
	cmpq	%rax, %rdx
	jne	LBB0_6
	jmp	LBB0_7
LBB0_1:
	movq	-32(%rbp), %rax
	movq	%rax, %rdx
	andq	$-8, %rdx
	cmpq	%rax, %rdx
	je	LBB0_7
LBB0_6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_pci_write_config_byte
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rax, %rdx
	andq	$-4, %rdx
	orq	$1, %rdx
	cmpq	%rax, %rdx
	jne	LBB0_6
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_HPT374,8,3                     ## @HPT374
	.comm	_HPT370,8,3                     ## @HPT370
	.no_dead_strip	_hpt3xx_disable_fast_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hpt3xx_disable_fast_irq
_hpt3xx_disable_fast_irq:               ; @hpt3xx_disable_fast_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	bl	_pci_get_drvdata
	ldp	x9, x8, [x0]
	ldr	x9, [x9, #8]
	cmp	x19, x9
	cset	w9, eq
	ldr	x21, [x8, w9, uxtw #3]
	str	xzr, [sp, #8]
	add	x20, x20, #1
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_pci_read_config_byte
Lloh0:
	adrp	x8, _HPT374@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HPT374@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ge	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _HPT370@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HPT370@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x8]
	ldr	x8, [sp, #8]
	cmp	x21, x9
	b.ge	LBB0_6
; %bb.2:
	and	x2, x8, #0xffffffffffffff7f
	cmp	x2, x8
	b.ne	LBB0_4
	b	LBB0_5
LBB0_3:
	ldr	x8, [sp, #8]
	and	x2, x8, #0xfffffffffffffff8
	cmp	x2, x8
	b.eq	LBB0_5
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	bl	_pci_write_config_byte
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	and	x9, x8, #0xfffffffffffffffc
	orr	x2, x9, #0x1
	cmp	x2, x8
	b.ne	LBB0_4
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HPT374,8,3                     ; @HPT374
	.comm	_HPT370,8,3                     ; @HPT370
	.no_dead_strip	_hpt3xx_disable_fast_irq
.subsections_via_symbols
