	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wf_fcu_write_reg
_wf_fcu_write_reg:                      ## @wf_fcu_write_reg
	.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
	movl	%ecx, %r15d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movb	%sil, -64(%rbp)
	leaq	-63(%rbp), %rdi
	movq	%rdx, %rsi
	movl	%ecx, %edx
	callq	_memcpy
	incl	%r15d
	movl	(%r14), %edi
	leaq	-64(%rbp), %rsi
	movl	%r15d, %edx
	callq	_i2c_master_send
	movl	%eax, %r13d
	testl	%eax, %eax
	jle	LBB0_1
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	xorl	%ebx, %ebx
	leaq	-64(%rbp), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$99, %ebx
	ja	LBB0_7
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$10, %edi
	callq	_msleep
	incl	%ebx
	movl	(%r14), %edi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_i2c_master_send
	movl	%eax, %r13d
	testl	%eax, %eax
	jg	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r13d, %r13d
	jns	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r13d, %eax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$99, %ebx
	jbe	LBB0_5
LBB0_8:
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	callq	_pr_err
	jmp	LBB0_9
LBB0_7:
	xorl	%r13d, %r13d
	jmp	LBB0_9
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wf_fcu: Failure writing to FCU: %d"

	.no_dead_strip	_wf_fcu_write_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wf_fcu_write_reg
_wf_fcu_write_reg:                      ; @wf_fcu_write_reg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x3
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	strb	w1, [sp, #8]
	add	x8, sp, #8
	add	x0, x8, #1
	mov	x1, x2
	mov	x2, x3
	bl	_memcpy
	add	w20, w20, #1
	ldr	w0, [x19]
	add	x1, sp, #8
	mov	x2, x20
	bl	_i2c_master_send
	mov	x21, x0
	cmp	w0, #0
	b.le	LBB0_3
LBB0_1:
	ldr	x8, [sp, #24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.2:
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
LBB0_3:
	mov	w22, #0
Lloh6:
	adrp	x23, _EIO@GOTPAGE
Lloh7:
	ldr	x23, [x23, _EIO@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	w22, #99
	b.hi	LBB0_10
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #10
	bl	_msleep
	add	w22, w22, #1
	ldr	w0, [x19]
	add	x1, sp, #8
	mov	x2, x20
	bl	_i2c_master_send
	mov	x21, x0
	cmp	w0, #0
	b.gt	LBB0_1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	tbz	w21, #31, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x23]
	cmn	w21, w8
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w22, #99
	b.ls	LBB0_5
LBB0_9:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_pr_err
	b	LBB0_1
LBB0_10:
	mov	w21, #0
	b	LBB0_1
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wf_fcu: Failure writing to FCU: %d"

	.no_dead_strip	_wf_fcu_write_reg
.subsections_via_symbols
