	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function k8temp_update_device
_k8temp_update_device:                  ## @k8temp_update_device
	.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	%rdi, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_to_pci_dev
	movq	%rax, %r15
	leaq	8(%r12), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	cmpl	$0, (%r12)
	je	LBB0_2
## %bb.1:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r12), %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_8
LBB0_2:
	movq	_REG_TEMP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_pci_read_config_byte
	movq	_SEL_PLACE@GOTPCREL(%rip), %r13
	movq	_SEL_CORE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r13), %edx
	notl	%edx
	andl	-44(%rbp), %edx
	movl	%edx, -44(%rbp)
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_pci_write_config_byte
	movl	(%rbx), %esi
	movq	24(%r12), %rax
	movq	(%rax), %rdx
	movq	%r15, %rdi
	callq	_pci_read_config_dword
	movl	4(%r12), %ecx
	movl	(%r13), %edx
	testl	%ecx, %edx
	je	LBB0_4
## %bb.3:
	orl	-44(%rbp), %edx
	movl	%edx, -44(%rbp)
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_pci_write_config_byte
	movl	(%rbx), %esi
	movq	24(%r12), %rax
	movq	(%rax), %rdx
	addq	$4, %rdx
	movq	%r15, %rdi
	callq	_pci_read_config_dword
	movl	4(%r12), %ecx
LBB0_4:
	movq	_SEL_CORE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ecx, %eax
	je	LBB0_7
## %bb.5:
	movl	(%r13), %edx
	notl	%edx
	andl	-44(%rbp), %edx
	orl	%eax, %edx
	movl	%edx, -44(%rbp)
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_pci_write_config_byte
	movl	(%rbx), %esi
	movq	24(%r12), %rax
	movq	8(%rax), %rdx
	movq	%r15, %rdi
	callq	_pci_read_config_dword
	movl	(%r13), %edx
	testl	%edx, 4(%r12)
	je	LBB0_7
## %bb.6:
	orl	-44(%rbp), %edx
	movl	%edx, -44(%rbp)
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_pci_write_config_byte
	movl	(%rbx), %esi
	movq	24(%r12), %rax
	movq	8(%rax), %rdx
	addq	$4, %rdx
	movq	%r15, %rdi
	callq	_pci_read_config_dword
LBB0_7:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r12)
	movl	$1, (%r12)
LBB0_8:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,8,3                         ## @HZ
	.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_update_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function k8temp_update_device
_k8temp_update_device:                  ; @k8temp_update_device
	.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	x20, x0
	bl	_dev_get_drvdata
	mov	x19, x0
	mov	x0, x20
	bl	_to_pci_dev
	mov	x21, x0
	add	x20, x19, #8
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x19]
Lloh0:
	adrp	x22, _jiffies@GOTPAGE
Lloh1:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	x0, [x22]
	ldr	x8, [x19, #16]
Lloh2:
	adrp	x9, _HZ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_time_after
	cbz	x0, LBB0_8
LBB0_2:
Lloh5:
	adrp	x23, _REG_TEMP@GOTPAGE
Lloh6:
	ldr	x23, [x23, _REG_TEMP@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x21
	bl	_pci_read_config_byte
Lloh7:
	adrp	x24, _SEL_PLACE@GOTPAGE
Lloh8:
	ldr	x24, [x24, _SEL_PLACE@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh9:
	adrp	x25, _SEL_CORE@GOTPAGE
Lloh10:
	ldr	x25, [x25, _SEL_CORE@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w8, w9, w8
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x23]
	mov	x0, x21
	bl	_pci_write_config_byte
	ldr	w1, [x23]
	ldr	x8, [x19, #24]
	ldr	x2, [x8]
	mov	x0, x21
	bl	_pci_read_config_dword
	ldr	w8, [x19, #4]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	w8, [sp, #12]
	orr	w2, w8, w9
	str	w2, [sp, #12]
	ldr	w1, [x23]
	mov	x0, x21
	bl	_pci_write_config_byte
	ldr	w1, [x23]
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	add	x2, x8, #4
	mov	x0, x21
	bl	_pci_read_config_dword
	ldr	w8, [x19, #4]
LBB0_4:
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
	ldr	w8, [x24]
	ldr	w10, [sp, #12]
	bic	w8, w10, w8
	orr	w2, w8, w9
	str	w2, [sp, #12]
	ldr	w1, [x23]
	mov	x0, x21
	bl	_pci_write_config_byte
	ldr	w1, [x23]
	ldr	x8, [x19, #24]
	ldr	x2, [x8, #8]
	mov	x0, x21
	bl	_pci_read_config_dword
	ldr	w9, [x19, #4]
	ldr	w8, [x24]
	tst	w8, w9
	b.eq	LBB0_7
; %bb.6:
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x23]
	mov	x0, x21
	bl	_pci_write_config_byte
	ldr	w1, [x23]
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
	add	x2, x8, #4
	mov	x0, x21
	bl	_pci_read_config_dword
LBB0_7:
	ldr	x8, [x22]
	str	x8, [x19, #16]
	mov	w8, #1
	str	w8, [x19]
LBB0_8:
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.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_update_device
.subsections_via_symbols
