	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fcu_write
_fcu_write:                             ## @fcu_write
	.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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r8d killed $r8d def $r8
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movslq	%esi, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -52(%rbp)
	leaq	-68(%rbp), %rax
	movl	%eax, -48(%rbp)
	movl	$0, -44(%rbp)
	leal	1(%r8), %eax
	movl	%eax, -56(%rbp)
	movb	%dl, -68(%rbp)
	leaq	-67(%rbp), %rdi
	movq	%rcx, %rsi
	movl	%r8d, %edx
	callq	_memcpy
	leaq	-64(%rbp), %rsi
	movl	%ebx, %edi
	movl	$1, %edx
	callq	_iicbus_transfer
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	_hz@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_pause
	leaq	-64(%rbp), %rsi
	movl	%ebx, %edi
	movl	$1, %edx
	callq	_iicbus_transfer
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_pause
	leaq	-64(%rbp), %rsi
	movl	%ebx, %edi
	movl	$1, %edx
	callq	_iicbus_transfer
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_pause
	leaq	-64(%rbp), %rsi
	movl	%ebx, %edi
	movl	$1, %edx
	callq	_iicbus_transfer
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_pause
	leaq	-64(%rbp), %rsi
	movl	%ebx, %edi
	movl	$1, %edx
	callq	_iicbus_transfer
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_pause
	leaq	-64(%rbp), %rsi
	movl	%ebx, %edi
	movl	$1, %edx
	callq	_iicbus_transfer
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	callq	_device_printf
	movl	$-1, %r14d
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_9
## %bb.7:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IIC_M_WR,4,2                   ## @IIC_M_WR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"iicbus write failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"fcu_write"

	.comm	_hz,4,2                         ## @hz
	.no_dead_strip	_fcu_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fcu_write
_fcu_write:                             ; @fcu_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	sxtw	x8, w1
	str	x8, [sp, #16]
	add	x8, sp, #12
	stp	w8, wzr, [sp, #32]
	add	w9, w4, #1
	stp	w9, wzr, [sp, #24]
	strb	w2, [sp, #12]
	add	x0, x8, #1
	mov	x1, x3
	mov	x2, x4
	bl	_memcpy
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #1
	bl	_iicbus_transfer
	cbz	x0, LBB0_7
; %bb.1:
Lloh3:
	adrp	x20, _hz@GOTPAGE
Lloh4:
	ldr	x20, [x20, _hz@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pause
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #1
	bl	_iicbus_transfer
	cbz	x0, LBB0_7
; %bb.2:
	ldr	w1, [x20]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pause
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #1
	bl	_iicbus_transfer
	cbz	x0, LBB0_7
; %bb.3:
	ldr	w1, [x20]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pause
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #1
	bl	_iicbus_transfer
	cbz	x0, LBB0_7
; %bb.4:
	ldr	w1, [x20]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pause
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #1
	bl	_iicbus_transfer
	cbz	x0, LBB0_7
; %bb.5:
	ldr	w1, [x20]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pause
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #1
	bl	_iicbus_transfer
	cbz	x0, LBB0_7
; %bb.6:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_device_printf
	mov	w0, #-1
LBB0_7:
	ldur	x8, [x29, #-24]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_IIC_M_WR,4,2                   ; @IIC_M_WR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"iicbus write failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"fcu_write"

	.comm	_hz,4,2                         ; @hz
	.no_dead_strip	_fcu_write
.subsections_via_symbols
