	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function k8temp_read
_k8temp_read:                           ## @k8temp_read
	.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	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, %ebx
	movq	%rdi, %r12
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movl	(%r12), %edi
	callq	_to_pci_dev
	movq	%rax, %r13
	movl	%ebx, %r14d
	shrl	%r14d
	andl	$1, %r14d
	leaq	16(%r15), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	(%r15), %r12d
	callq	_mutex_lock
	movq	_REG_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_pci_read_config_byte
	xorl	%eax, %eax
	cmpl	%r12d, %r14d
	movq	_SEL_PLACE@GOTPCREL(%rip), %rcx
	movq	_SEL_CORE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %esi
	cmovel	%eax, %esi
	movl	(%rcx), %eax
	andl	$1, %ebx
	negl	%ebx
	orl	%eax, %edx
	notl	%edx
	andl	-44(%rbp), %edx
	andl	%eax, %ebx
	orl	%esi, %ebx
	orl	%edx, %ebx
	movl	%ebx, -44(%rbp)
	movq	_REG_TEMP@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_pci_write_config_byte
	movl	(%r14), %esi
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	callq	_pci_read_config_dword
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movl	-48(%rbp), %edi
	callq	_TEMP_FROM_REG
	addq	8(%r15), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_TEMP,4,2                   ## @REG_TEMP
	.comm	_SEL_PLACE,4,2                  ## @SEL_PLACE
	.comm	_SEL_CORE,4,2                   ## @SEL_CORE
	.no_dead_strip	_k8temp_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function k8temp_read
_k8temp_read:                           ; @k8temp_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x4
	mov	x21, x3
	mov	x22, x0
	bl	_dev_get_drvdata
	mov	x20, x0
	ldr	w0, [x22]
	bl	_to_pci_dev
	mov	x22, x0
	ubfx	w23, w21, #1, #1
	sbfx	w24, w21, #0, #1
	ldr	w25, [x20]
	add	x21, x20, #16
	mov	x0, x21
	bl	_mutex_lock
Lloh0:
	adrp	x26, _REG_TEMP@GOTPAGE
Lloh1:
	ldr	x26, [x26, _REG_TEMP@GOTPAGEOFF]
	ldr	w1, [x26]
	add	x2, sp, #8
	mov	x0, x22
	bl	_pci_read_config_byte
Lloh2:
	adrp	x8, _SEL_PLACE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SEL_PLACE@GOTPAGEOFF]
Lloh4:
	adrp	x9, _SEL_CORE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SEL_CORE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	ldr	w9, [x9]
	orr	w10, w9, w8
	ldr	w11, [sp, #8]
	bic	w10, w11, w10
	cmp	w23, w25
	csel	w9, wzr, w9, eq
	orr	w9, w10, w9
	and	w8, w24, w8
	orr	w2, w9, w8
	str	w2, [sp, #8]
	ldr	w1, [x26]
	mov	x0, x22
	bl	_pci_write_config_byte
	ldr	w1, [x26]
	add	x2, sp, #12
	mov	x0, x22
	bl	_pci_read_config_dword
	mov	x0, x21
	bl	_mutex_unlock
	ldr	w0, [sp, #12]
	bl	_TEMP_FROM_REG
	ldr	x8, [x20, #8]
	add	x8, x8, x0
	str	x8, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_TEMP,4,2                   ; @REG_TEMP
	.comm	_SEL_PLACE,4,2                  ; @SEL_PLACE
	.comm	_SEL_CORE,4,2                   ; @SEL_CORE
	.no_dead_strip	_k8temp_read
.subsections_via_symbols
