	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i7300_process_error_global
_i7300_process_error_global:            ## @i7300_process_error_global
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r12
	movl	(%r12), %edi
	movq	_FERR_GLOBAL_HI@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-48(%rbp), %rdx
	callq	_pci_read_config_dword
	movq	-48(%rbp), %rdi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	-48(%rbp), %rax
	movq	%rax, -56(%rbp)
	movq	_ferr_global_hi_name@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_ARRAY_SIZE
	leaq	-56(%rbp), %rdi
	movl	%eax, %esi
	callq	_find_first_bit
	movq	%rax, %rbx
	movl	(%r15), %edi
	movq	%rax, %rsi
	callq	_GET_ERR_FROM_TABLE
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_ferr_global_hi_is_fatal
	jmp	LBB0_4
LBB0_2:
	movl	(%r12), %edi
	movq	_FERR_GLOBAL_LO@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-48(%rbp), %rdx
	callq	_pci_read_config_dword
	movq	-48(%rbp), %rdi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	-48(%rbp), %rax
	movq	%rax, -56(%rbp)
	movq	_ferr_global_lo_name@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_ARRAY_SIZE
	leaq	-56(%rbp), %rdi
	movl	%eax, %esi
	callq	_find_first_bit
	movq	%rax, %rbx
	movl	(%r15), %edi
	movq	%rax, %rsi
	callq	_GET_ERR_FROM_TABLE
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_ferr_global_lo_is_fatal
LBB0_4:
	movl	%eax, %ebx
	movl	(%r12), %edi
	movl	(%r13), %esi
	movq	-48(%rbp), %rdx
	callq	_pci_write_config_dword
	movq	_KERN_EMERG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%ebx, %ebx
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movq	%r15, %r8
	callq	_i7300_mc_printk
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FERR_GLOBAL_HI,4,2             ## @FERR_GLOBAL_HI
	.comm	_ferr_global_hi_name,4,2        ## @ferr_global_hi_name
	.comm	_FERR_GLOBAL_LO,4,2             ## @FERR_GLOBAL_LO
	.comm	_ferr_global_lo_name,4,2        ## @ferr_global_lo_name
	.comm	_KERN_EMERG,4,2                 ## @KERN_EMERG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s misc error: %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"Fatal"

L_.str.2:                               ## @.str.2
	.asciz	"NOT fatal"

	.no_dead_strip	_i7300_process_error_global
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i7300_process_error_global
_i7300_process_error_global:            ; @i7300_process_error_global
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x22, [x0]
	ldr	w0, [x22]
Lloh0:
	adrp	x23, _FERR_GLOBAL_HI@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FERR_GLOBAL_HI@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #8
	bl	_pci_read_config_dword
	ldr	x0, [sp, #8]
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [sp, #8]
	str	x8, [sp]
Lloh2:
	adrp	x20, _ferr_global_hi_name@GOTPAGE
Lloh3:
	ldr	x20, [x20, _ferr_global_hi_name@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_ARRAY_SIZE
	mov	x1, x0
	mov	x0, sp
	bl	_find_first_bit
	mov	x21, x0
	ldr	w0, [x20]
	mov	x1, x21
	bl	_GET_ERR_FROM_TABLE
	mov	x20, x0
	mov	x0, x21
	bl	_ferr_global_hi_is_fatal
	b	LBB0_4
LBB0_2:
	ldr	w0, [x22]
Lloh4:
	adrp	x23, _FERR_GLOBAL_LO@GOTPAGE
Lloh5:
	ldr	x23, [x23, _FERR_GLOBAL_LO@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #8
	bl	_pci_read_config_dword
	ldr	x0, [sp, #8]
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [sp, #8]
	str	x8, [sp]
Lloh6:
	adrp	x20, _ferr_global_lo_name@GOTPAGE
Lloh7:
	ldr	x20, [x20, _ferr_global_lo_name@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_ARRAY_SIZE
	mov	x1, x0
	mov	x0, sp
	bl	_find_first_bit
	mov	x21, x0
	ldr	w0, [x20]
	mov	x1, x21
	bl	_GET_ERR_FROM_TABLE
	mov	x20, x0
	mov	x0, x21
	bl	_ferr_global_lo_is_fatal
LBB0_4:
	mov	x21, x0
	ldr	w0, [x22]
	ldr	w1, [x23]
	ldr	x2, [sp, #8]
	bl	_pci_write_config_dword
Lloh8:
	adrp	x8, _KERN_EMERG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KERN_EMERG@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, l_.str.1@PAGE
Lloh12:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh13:
	adrp	x9, l_.str.2@PAGE
Lloh14:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w21, #0
	csel	x3, x9, x8, eq
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x4, x20
	bl	_i7300_mc_printk
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_FERR_GLOBAL_HI,4,2             ; @FERR_GLOBAL_HI
	.comm	_ferr_global_hi_name,4,2        ; @ferr_global_hi_name
	.comm	_FERR_GLOBAL_LO,4,2             ; @FERR_GLOBAL_LO
	.comm	_ferr_global_lo_name,4,2        ; @ferr_global_lo_name
	.comm	_KERN_EMERG,4,2                 ; @KERN_EMERG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s misc error: %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"Fatal"

l_.str.2:                               ; @.str.2
	.asciz	"NOT fatal"

	.no_dead_strip	_i7300_process_error_global
.subsections_via_symbols
