	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wf_fcu_read_reg
_wf_fcu_read_reg:                       ## @wf_fcu_read_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_mutex_lock
	movb	%bl, (%r12)
	movl	4(%r15), %edi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_i2c_master_send
	movl	%eax, %r13d
	testl	%eax, %eax
	jg	LBB0_6
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r13d, %r13d
	jns	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r13d, %eax
	jne	LBB0_14
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$99, %ebx
	ja	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$10, %edi
	callq	_msleep
	incl	%ebx
	movl	4(%r15), %edi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_i2c_master_send
	movl	%eax, %r13d
	testl	%eax, %eax
	jle	LBB0_2
LBB0_6:
	movl	4(%r15), %edi
	movq	%r12, %rsi
	movl	%r14d, %edx
	callq	_i2c_master_recv
	movl	%eax, %ebx
	testl	%eax, %eax
	jg	LBB0_13
## %bb.7:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %ebx
	jns	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$99, %r14d
	ja	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	$10, %edi
	callq	_msleep
	incl	%r14d
	movl	4(%r15), %edi
	movq	%r12, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_i2c_master_recv
	movl	%eax, %ebx
	testl	%eax, %eax
	jle	LBB0_8
	jmp	LBB0_13
LBB0_14:
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	callq	_pr_err
	movl	%r13d, %ebx
	jmp	LBB0_13
LBB0_12:
	leaq	L_.str.1(%rip), %rdi
	movl	%r13d, %esi
	callq	_pr_err
LBB0_13:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failure writing address to FCU: %d"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"wf_fcu: Failure reading data from FCU: %d"

	.no_dead_strip	_wf_fcu_read_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_read_reg
_wf_fcu_read_reg:                       ; @wf_fcu_read_reg
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.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, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_mutex_lock
	strb	w22, [x21]
	ldr	w0, [x19, #4]
	mov	x1, x21
	mov	w2, #1
	bl	_i2c_master_send
	mov	x22, x0
	cmp	w0, #0
	b.gt	LBB0_6
; %bb.1:
	mov	w23, #0
Lloh0:
	adrp	x24, _EIO@GOTPAGE
Lloh1:
	ldr	x24, [x24, _EIO@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	tbz	w22, #31, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x24]
	cmn	w22, w8
	b.ne	LBB0_12
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w23, #99
	b.hi	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #10
	bl	_msleep
	add	w23, w23, #1
	ldr	w0, [x19, #4]
	mov	x1, x21
	mov	w2, #1
	bl	_i2c_master_send
	mov	x22, x0
	cmp	w0, #0
	b.le	LBB0_2
LBB0_6:
	ldr	w0, [x19, #4]
	mov	x1, x21
	mov	x2, x20
	bl	_i2c_master_recv
	mov	x23, x0
	cmp	w0, #0
	b.gt	LBB0_14
; %bb.7:
	mov	w24, #0
Lloh2:
	adrp	x25, _ENODEV@GOTPAGE
Lloh3:
	ldr	x25, [x25, _ENODEV@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	tbz	w23, #31, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x25]
	cmn	w23, w8
	b.ne	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	w24, #99
	b.hi	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #10
	bl	_msleep
	add	w24, w24, #1
	ldr	w0, [x19, #4]
	mov	x1, x21
	mov	x2, x20
	bl	_i2c_master_recv
	mov	x23, x0
	cmp	w0, #0
	b.le	LBB0_8
	b	LBB0_14
LBB0_12:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_pr_err
	mov	x23, x22
	b	LBB0_14
LBB0_13:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_pr_err
LBB0_14:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failure writing address to FCU: %d"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"wf_fcu: Failure reading data from FCU: %d"

	.no_dead_strip	_wf_fcu_read_reg
.subsections_via_symbols
