	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function it821x_disable_raid
_it821x_disable_raid:                   ## @it821x_disable_raid
	.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), %rax
	movq	_PCI_VENDOR_ID_ITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	_PCI_DEVICE_ID_ITE_8212@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	movl	$94, %esi
	movl	$1, %edx
	callq	_pci_write_config_byte
	movq	%rbx, %rdi
	movl	$80, %esi
	xorl	%edx, %edx
	callq	_pci_write_config_byte
	movq	_PCI_COMMAND_PARITY@GOTPCREL(%rip), %rax
	movq	_PCI_COMMAND_IO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_PCI_COMMAND@GOTPCREL(%rip), %rax
	movq	_PCI_COMMAND_MEMORY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_PCI_COMMAND_MASTER@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_pci_write_config_word
	movq	%rbx, %rdi
	movl	$64, %esi
	movl	$41203, %edx                    ## imm = 0xA0F3
	callq	_pci_write_config_word
	movq	%rbx, %rdi
	movl	$76, %esi
	movl	$33817092, %edx                 ## imm = 0x2040204
	callq	_pci_write_config_dword
	movq	%rbx, %rdi
	movl	$66, %esi
	movl	$54, %edx
	callq	_pci_write_config_byte
	movq	_PCI_LATENCY_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$32, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_pci_write_config_byte          ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_VENDOR_ID_ITE,8,3          ## @PCI_VENDOR_ID_ITE
	.comm	_PCI_DEVICE_ID_ITE_8212,8,3     ## @PCI_DEVICE_ID_ITE_8212
	.comm	_PCI_COMMAND,4,2                ## @PCI_COMMAND
	.comm	_PCI_COMMAND_PARITY,4,2         ## @PCI_COMMAND_PARITY
	.comm	_PCI_COMMAND_IO,4,2             ## @PCI_COMMAND_IO
	.comm	_PCI_COMMAND_MEMORY,4,2         ## @PCI_COMMAND_MEMORY
	.comm	_PCI_COMMAND_MASTER,4,2         ## @PCI_COMMAND_MASTER
	.comm	_PCI_LATENCY_TIMER,4,2          ## @PCI_LATENCY_TIMER
	.no_dead_strip	_it821x_disable_raid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function it821x_disable_raid
_it821x_disable_raid:                   ; @it821x_disable_raid
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PCI_VENDOR_ID_ITE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCI_VENDOR_ID_ITE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh3:
	adrp	x9, _PCI_DEVICE_ID_ITE_8212@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PCI_DEVICE_ID_ITE_8212@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #94
	mov	w2, #1
	bl	_pci_write_config_byte
	mov	x0, x19
	mov	w1, #80
	mov	w2, #0
	bl	_pci_write_config_byte
Lloh6:
	adrp	x8, _PCI_COMMAND@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_COMMAND@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _PCI_COMMAND_PARITY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCI_COMMAND_PARITY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _PCI_COMMAND_IO@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PCI_COMMAND_IO@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _PCI_COMMAND_MEMORY@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PCI_COMMAND_MEMORY@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _PCI_COMMAND_MASTER@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PCI_COMMAND_MASTER@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_pci_write_config_word
	mov	x0, x19
	mov	w1, #64
	mov	w2, #41203
	bl	_pci_write_config_word
	mov	x0, x19
	mov	w1, #76
	mov	w2, #516
	movk	w2, #516, lsl #16
	bl	_pci_write_config_dword
	mov	x0, x19
	mov	w1, #66
	mov	w2, #54
	bl	_pci_write_config_byte
Lloh21:
	adrp	x8, _PCI_LATENCY_TIMER@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PCI_LATENCY_TIMER@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #32
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pci_write_config_byte
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_VENDOR_ID_ITE,8,3          ; @PCI_VENDOR_ID_ITE
	.comm	_PCI_DEVICE_ID_ITE_8212,8,3     ; @PCI_DEVICE_ID_ITE_8212
	.comm	_PCI_COMMAND,4,2                ; @PCI_COMMAND
	.comm	_PCI_COMMAND_PARITY,4,2         ; @PCI_COMMAND_PARITY
	.comm	_PCI_COMMAND_IO,4,2             ; @PCI_COMMAND_IO
	.comm	_PCI_COMMAND_MEMORY,4,2         ; @PCI_COMMAND_MEMORY
	.comm	_PCI_COMMAND_MASTER,4,2         ; @PCI_COMMAND_MASTER
	.comm	_PCI_LATENCY_TIMER,4,2          ; @PCI_LATENCY_TIMER
	.no_dead_strip	_it821x_disable_raid
.subsections_via_symbols
