	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ie31200_get_and_clear_error_info
_ie31200_get_and_clear_error_info:      ## @ie31200_get_and_clear_error_info
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	movl	(%rdi), %edi
	callq	_to_pci_dev
	movq	%rax, %r15
	movq	_IE31200_ERRSTS@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rax, %rdi
	movq	%rbx, %rdx
	callq	_pci_read_config_word
	movq	_IE31200_ERRSTS_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_7
## %bb.1:
	movl	4(%r12), %edi
	callq	_lo_hi_readq
	movq	8(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	_nr_channels@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jne	LBB0_3
## %bb.2:
	movl	(%r12), %edi
	callq	_lo_hi_readq
	movq	8(%rbx), %rcx
	movq	%rax, 8(%rcx)
LBB0_3:
	movl	(%r13), %esi
	leaq	4(%rbx), %rdx
	movq	%r15, %rdi
	callq	_pci_read_config_word
	movl	4(%rbx), %eax
	xorl	(%rbx), %eax
	movq	_IE31200_ERRSTS_BITS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.4:
	movl	4(%r12), %edi
	callq	_lo_hi_readq
	movq	8(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	_nr_channels@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jne	LBB0_6
## %bb.5:
	movl	(%r12), %edi
	callq	_lo_hi_readq
	movq	8(%rbx), %rcx
	movq	%rax, 8(%rcx)
LBB0_6:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ie31200_clear_error_info       ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IE31200_ERRSTS,4,2             ## @IE31200_ERRSTS
	.comm	_IE31200_ERRSTS_BITS,4,2        ## @IE31200_ERRSTS_BITS
	.comm	_nr_channels,4,2                ## @nr_channels
	.no_dead_strip	_ie31200_get_and_clear_error_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ie31200_get_and_clear_error_info
_ie31200_get_and_clear_error_info:      ; @ie31200_get_and_clear_error_info
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #8]
	ldr	w0, [x0]
	bl	_to_pci_dev
	mov	x21, x0
Lloh0:
	adrp	x24, _IE31200_ERRSTS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IE31200_ERRSTS@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x2, x20
	bl	_pci_read_config_word
	ldr	w8, [x20]
Lloh2:
	adrp	x23, _IE31200_ERRSTS_BITS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _IE31200_ERRSTS_BITS@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.1:
	ldr	w0, [x22, #4]
	bl	_lo_hi_readq
	ldr	x8, [x20, #8]
	str	x0, [x8]
Lloh4:
	adrp	x25, _nr_channels@GOTPAGE
Lloh5:
	ldr	x25, [x25, _nr_channels@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #2
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x22]
	bl	_lo_hi_readq
	ldr	x8, [x20, #8]
	str	x0, [x8, #8]
LBB0_3:
	ldr	w1, [x24]
	add	x2, x20, #4
	mov	x0, x21
	bl	_pci_read_config_word
	ldp	w8, w9, [x20]
	eor	w8, w9, w8
	ldr	w9, [x23]
	tst	w8, w9
	b.eq	LBB0_6
; %bb.4:
	ldr	w0, [x22, #4]
	bl	_lo_hi_readq
	ldr	x8, [x20, #8]
	str	x0, [x8]
	ldr	w8, [x25]
	cmp	w8, #2
	b.ne	LBB0_6
; %bb.5:
	ldr	w0, [x22]
	bl	_lo_hi_readq
	ldr	x8, [x20, #8]
	str	x0, [x8, #8]
LBB0_6:
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ie31200_clear_error_info
LBB0_7:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IE31200_ERRSTS,4,2             ; @IE31200_ERRSTS
	.comm	_IE31200_ERRSTS_BITS,4,2        ; @IE31200_ERRSTS_BITS
	.comm	_nr_channels,4,2                ; @nr_channels
	.no_dead_strip	_ie31200_get_and_clear_error_info
.subsections_via_symbols
