	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nsa320_hwmon_update
_nsa320_hwmon_update:                   ## @nsa320_hwmon_update
	.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
	callq	_dev_get_drvdata
	movq	%rax, %r12
	leaq	4(%rax), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movl	(%r12), %r13d
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	testl	%r13d, %r13d
	jne	LBB0_10
LBB0_2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	16(%r12), %edi
	movl	$1, %esi
	callq	_gpiod_set_value
	movl	$100, %edi
	callq	_msleep
	movl	$31, %edi
	callq	_BIT
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %r15d
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	24(%r12), %edi
	xorl	%esi, %esi
	callq	_gpiod_set_value
	movl	$100, %edi
	movl	$200, %esi
	callq	_usleep_range
	movl	24(%r12), %edi
	movl	$1, %esi
	callq	_gpiod_set_value
	movl	$100, %edi
	movl	$200, %esi
	callq	_usleep_range
	movl	20(%r12), %edi
	callq	_gpiod_get_value
	testq	%rax, %rax
	movl	%r15d, %eax
	cmovel	%r14d, %eax
	orl	%eax, %r13d
	sarl	%ebx
	cmpl	$1, %r15d
	movl	%ebx, %r15d
	ja	LBB0_5
	jmp	LBB0_6
LBB0_3:
	xorl	%r13d, %r13d
LBB0_6:
	movl	16(%r12), %edi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_gpiod_set_value
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_dev_dbg
	movl	%r13d, %eax
	sarl	$24, %eax
	movq	_MAGIC_NUMBER@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.8:
	movl	%r13d, (%r12)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_dev_dbg
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movl	%r14d, %r13d
LBB0_9:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_10:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r13d, %eax
	addq	$24, %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Read raw MCU data %08x\n"

	.comm	_MAGIC_NUMBER,4,2               ## @MAGIC_NUMBER
L_.str.1:                               ## @.str.1
	.asciz	"Read invalid MCU data %08x\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_nsa320_hwmon_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nsa320_hwmon_update
_nsa320_hwmon_update:                   ; @nsa320_hwmon_update
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	bl	_dev_get_drvdata
	mov	x21, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock
	ldr	w22, [x21]
Lloh0:
	adrp	x24, _jiffies@GOTPAGE
Lloh1:
	ldr	x24, [x24, _jiffies@GOTPAGEOFF]
	ldr	x0, [x24]
	ldr	x8, [x21, #8]
Lloh2:
	adrp	x9, _HZ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_time_after
	cmp	x0, #0
	ccmp	w22, #0, #4, eq
	b.ne	LBB0_8
; %bb.1:
	ldr	w0, [x21, #16]
	mov	w1, #1
	bl	_gpiod_set_value
	mov	w0, #100
	bl	_msleep
	mov	w0, #31
	bl	_BIT
	cbz	w0, LBB0_4
; %bb.2:
	mov	x23, x0
	mov	w22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, #24]
	mov	w1, #0
	bl	_gpiod_set_value
	mov	w0, #100
	mov	w1, #200
	bl	_usleep_range
	ldr	w0, [x21, #24]
	mov	w1, #1
	bl	_gpiod_set_value
	mov	w0, #100
	mov	w1, #200
	bl	_usleep_range
	ldr	w0, [x21, #20]
	bl	_gpiod_get_value
	cmp	x0, #0
	csel	w8, wzr, w23, eq
	orr	w22, w8, w22
	asr	w8, w23, #1
	cmp	w23, #1
	mov	x23, x8
	b.hi	LBB0_3
	b	LBB0_5
LBB0_4:
	mov	w22, #0
LBB0_5:
	ldr	w0, [x21, #16]
	mov	w1, #0
	bl	_gpiod_set_value
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_dev_dbg
Lloh7:
	adrp	x8, _MAGIC_NUMBER@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MAGIC_NUMBER@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, w22, asr #24
	b.ne	LBB0_7
; %bb.6:
	str	w22, [x21]
	ldr	x8, [x24]
	str	x8, [x21, #8]
	b	LBB0_8
LBB0_7:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_dev_dbg
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_8:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Read raw MCU data %08x\n"

	.comm	_MAGIC_NUMBER,4,2               ; @MAGIC_NUMBER
l_.str.1:                               ; @.str.1
	.asciz	"Read invalid MCU data %08x\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_nsa320_hwmon_update
.subsections_via_symbols
