	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smusat_updatecache
_smusat_updatecache:                    ## @smusat_updatecache
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$128, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	callq	_device_get_softc
	movq	%rax, %r14
	movl	$0, -144(%rbp)
	movq	_IIC_M_WR@GOTPCREL(%rip), %rax
	movq	_IIC_M_NOSTOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -140(%rbp)
	movq	$1, -136(%rbp)
	movq	$0, -124(%rbp)
	movq	_IIC_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -116(%rbp)
	movq	$16, -112(%rbp)
	movl	$0, -100(%rbp)
	movl	%ebx, %edi
	callq	_iicbus_get_addr
	movl	%eax, -104(%rbp)
	movl	%eax, -128(%rbp)
	leaq	-144(%rbp), %rsi
	movl	%ebx, %edi
	movl	$2, %edx
	callq	_iicbus_transfer
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_time_uptime@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movl	(%r14), %edi
	leaq	-96(%rbp), %rsi
	movl	$64, %edx
	callq	_memcpy
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	movl	%ebx, %eax
	addq	$128, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IIC_M_WR,4,2                   ## @IIC_M_WR
	.comm	_IIC_M_NOSTOP,4,2               ## @IIC_M_NOSTOP
	.comm	_IIC_M_RD,4,2                   ## @IIC_M_RD
	.comm	_time_uptime,4,2                ## @time_uptime
	.no_dead_strip	_smusat_updatecache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smusat_updatecache
_smusat_updatecache:                    ; @smusat_updatecache
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	bl	_device_get_softc
	mov	x19, x0
Lloh3:
	adrp	x8, _IIC_M_WR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IIC_M_WR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _IIC_M_NOSTOP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IIC_M_NOSTOP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	stp	wzr, w8, [sp, #8]
	mov	w8, #1
	str	x8, [sp, #16]
Lloh9:
	adrp	x8, _IIC_M_RD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IIC_M_RD@GOTPAGEOFF]
	stp	wzr, wzr, [sp, #28]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp, #36]
	mov	w8, #16
	str	x8, [sp, #40]
	str	wzr, [sp, #52]
	mov	x0, x20
	bl	_iicbus_get_addr
	str	w0, [sp, #48]
	str	w0, [sp, #24]
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #2
	bl	_iicbus_transfer
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _time_uptime@GOTPAGE
Lloh13:
	ldr	x8, [x8, _time_uptime@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	ldr	w0, [x19]
	add	x1, sp, #56
	mov	w2, #64
	bl	_memcpy
LBB0_2:
	ldur	x8, [x29, #-24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x20
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IIC_M_WR,4,2                   ; @IIC_M_WR
	.comm	_IIC_M_NOSTOP,4,2               ; @IIC_M_NOSTOP
	.comm	_IIC_M_RD,4,2                   ; @IIC_M_RD
	.comm	_time_uptime,4,2                ; @time_uptime
	.no_dead_strip	_smusat_updatecache
.subsections_via_symbols
