	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function friio_ext_ctl
_friio_ext_ctl:                         ## @friio_ext_ctl
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, -76(%rbp)                 ## 4-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movq	_FRIIO_CTL_LNB@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_2:
	movabsq	$8589934592, %rax               ## imm = 0x200000000
	movq	%rax, -104(%rbp)
	movq	$0, -88(%rbp)
	leaq	-56(%rbp), %rax
	movq	%rax, -96(%rbp)
	movl	$0, -56(%rbp)
	movq	_FRIIO_CTL_LED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%r12d, %eax
	movq	_FRIIO_CTL_STROBE@GOTPCREL(%rip), %r13
	orl	(%r13), %eax
	movl	%eax, -52(%rbp)
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rdi
	leaq	-104(%rbp), %r15
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_gl861_i2c_xfer
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	_FRIIO_CTL_CLK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -52(%rbp)
	movq	(%r14), %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_gl861_i2c_xfer
	movl	%eax, %ebx
	addl	-68(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	(%r13), %eax
	orl	%r12d, %eax
	movl	%eax, -52(%rbp)
	movq	(%r14), %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_gl861_i2c_xfer
	movl	%eax, %r13d
	addl	%ebx, %r13d
	movq	_FRIIO_CTL_CLK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -52(%rbp)
	movq	(%r14), %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_gl861_i2c_xfer
	movl	%eax, %ebx
	addl	%r13d, %ebx
	movl	$-2147483648, %r14d             ## imm = 0x80000000
	movl	$32, %r15d
	movl	%r12d, -72(%rbp)                ## 4-byte Spill
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13), %rdi
	leaq	-104(%rbp), %rsi
	movl	$1, %edx
	callq	_gl861_i2c_xfer
	movl	%ebx, %r12d
	addl	%eax, %r12d
	movq	_FRIIO_CTL_CLK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -52(%rbp)
	movq	(%r13), %rdi
	leaq	-104(%rbp), %rsi
	movl	$1, %edx
	callq	_gl861_i2c_xfer
	movl	%eax, %ebx
	addl	%r12d, %ebx
	sarl	%r14d
	decl	%r15d
	movl	-72(%rbp), %r12d                ## 4-byte Reload
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_FRIIO_CTL_STROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%r12d, %eax
	movl	%eax, -52(%rbp)
	testl	%r14d, -76(%rbp)                ## 4-byte Folded Reload
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_FRIIO_CTL_LED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -52(%rbp)
	jmp	LBB0_5
LBB0_6:
	movl	%r12d, -52(%rbp)
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rdi
	leaq	-104(%rbp), %r14
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_gl861_i2c_xfer
	movl	%eax, %r15d
	addl	%ebx, %r15d
	movq	_FRIIO_CTL_CLK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -52(%rbp)
	movq	(%r12), %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_gl861_i2c_xfer
	movl	%eax, %ecx
	addl	%r15d, %ecx
	xorl	%eax, %eax
	cmpl	$70, %ecx
	sete	%cl
	movq	___stack_chk_guard@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	-48(%rbp), %rdx
	jne	LBB0_8
## %bb.7:
	movb	%cl, %al
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FRIIO_CTL_LNB,4,2              ## @FRIIO_CTL_LNB
	.comm	_FRIIO_CTL_LED,4,2              ## @FRIIO_CTL_LED
	.comm	_FRIIO_CTL_STROBE,4,2           ## @FRIIO_CTL_STROBE
	.comm	_FRIIO_CTL_CLK,4,2              ## @FRIIO_CTL_CLK
	.no_dead_strip	_friio_ext_ctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function friio_ext_ctl
lCPI0_0:
	.long	0                               ; 0x0
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_friio_ext_ctl:                         ; @friio_ext_ctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	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, #40]
Lloh3:
	adrp	x8, _FRIIO_CTL_LNB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FRIIO_CTL_LNB@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w2, #0
	csel	w22, wzr, w8, eq
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #8]
	add	x8, sp, #32
	stp	x8, xzr, [sp, #16]
Lloh8:
	adrp	x23, _FRIIO_CTL_LED@GOTPAGE
Lloh9:
	ldr	x23, [x23, _FRIIO_CTL_LED@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh10:
	adrp	x24, _FRIIO_CTL_STROBE@GOTPAGE
Lloh11:
	ldr	x24, [x24, _FRIIO_CTL_STROBE@GOTPAGEOFF]
	orr	w8, w8, w22
	ldr	w9, [x24]
	orr	w8, w8, w9
	stp	wzr, w8, [sp, #32]
	ldr	x0, [x0]
	add	x1, sp, #8
	mov	w2, #1
	bl	_gl861_i2c_xfer
	mov	x21, x0
Lloh12:
	adrp	x25, _FRIIO_CTL_CLK@GOTPAGE
Lloh13:
	ldr	x25, [x25, _FRIIO_CTL_CLK@GOTPAGEOFF]
	ldr	w8, [x25]
	ldr	w9, [sp, #36]
	orr	w8, w9, w8
	str	w8, [sp, #36]
	ldr	x0, [x19]
	add	x1, sp, #8
	mov	w2, #1
	bl	_gl861_i2c_xfer
	add	w21, w0, w21
	ldr	w8, [x24]
	orr	w8, w8, w22
	str	w8, [sp, #36]
	ldr	x0, [x19]
	add	x1, sp, #8
	mov	w2, #1
	bl	_gl861_i2c_xfer
	add	w21, w21, w0
	ldr	w8, [x25]
	ldr	w9, [sp, #36]
	orr	w8, w9, w8
	str	w8, [sp, #36]
	ldr	x0, [x19]
	add	x1, sp, #8
	mov	w2, #1
	bl	_gl861_i2c_xfer
	add	w21, w21, w0
	mov	w26, #-2147483648
	mov	w27, #32
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x19]
	add	x1, sp, #8
	mov	w2, #1
	bl	_gl861_i2c_xfer
	add	w21, w0, w21
	ldr	w8, [x25]
	ldr	w9, [sp, #36]
	orr	w8, w9, w8
	str	w8, [sp, #36]
	ldr	x0, [x19]
	add	x1, sp, #8
	mov	w2, #1
	bl	_gl861_i2c_xfer
	add	w21, w21, w0
	asr	w26, w26, #1
	subs	w27, w27, #1
	b.eq	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	orr	w8, w8, w22
	str	w8, [sp, #36]
	tst	w26, w20
	b.eq	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x23]
	orr	w8, w9, w8
	str	w8, [sp, #36]
	b	LBB0_1
LBB0_4:
	str	w22, [sp, #36]
	ldr	x0, [x19]
	add	x1, sp, #8
	mov	w2, #1
	bl	_gl861_i2c_xfer
	add	w20, w0, w21
	ldr	w8, [x25]
	ldr	w9, [sp, #36]
	orr	w8, w9, w8
	str	w8, [sp, #36]
	ldr	x0, [x19]
	add	x1, sp, #8
	mov	w2, #1
	bl	_gl861_i2c_xfer
	add	w8, w20, w0
	cmp	w8, #70
	cset	w0, eq
	ldr	x8, [sp, #40]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_FRIIO_CTL_LNB,4,2              ; @FRIIO_CTL_LNB
	.comm	_FRIIO_CTL_LED,4,2              ; @FRIIO_CTL_LED
	.comm	_FRIIO_CTL_STROBE,4,2           ; @FRIIO_CTL_STROBE
	.comm	_FRIIO_CTL_CLK,4,2              ; @FRIIO_CTL_CLK
	.no_dead_strip	_friio_ext_ctl
.subsections_via_symbols
