	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function solo_gpio_mode
_solo_gpio_mode:                        ## @solo_gpio_mode
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_SOLO_GPIO_CONFIG_0@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_solo_reg_read
	movl	%r15d, %r8d
	andl	$3, %r8d
	xorl	%edx, %edx
	xorl	%esi, %esi
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	addl	$2, %esi
	addl	$4, %edx
	cmpl	$32, %edx
	je	LBB0_6
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	btl	%esi, %ebx
	jae	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$3, %edi
	movl	%edx, %ecx
	shll	%cl, %edi
	notl	%edi
	andl	%edi, %eax
	movl	%r8d, %edi
	shll	%cl, %edi
	orl	%edi, %eax
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %edi
	movl	%esi, %ecx
	shrl	%cl, %edi
	testb	$2, %dil
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	2(%rdx), %ecx
	movl	$3, %edi
	shll	%cl, %edi
	notl	%edi
	andl	%edi, %eax
	movl	%r8d, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	orl	%edi, %eax
	jmp	LBB0_5
LBB0_6:
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_solo_reg_write
	movq	_SOLO_GPIO_CONFIG_1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_solo_reg_read
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	notl	%esi
	andl	%esi, %eax
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	addq	$2, %rcx
	cmpq	$16, %rcx
	je	LBB0_16
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %rsi
	shrq	%cl, %rsi
	testl	$65536, %esi                    ## imm = 0x10000
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	$1, %esi
	shlq	%cl, %rsi
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	orl	%esi, %eax
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	notl	%esi
	andl	%esi, %eax
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rdx, %rsi
	shrq	%cl, %rsi
	testl	$131072, %esi                   ## imm = 0x20000
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$2, %esi
	shlq	%cl, %rsi
	testl	%r15d, %r15d
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	orl	%esi, %eax
	jmp	LBB0_15
LBB0_16:
	orl	$-65536, %eax                   ## imm = 0xFFFF0000
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_solo_reg_write                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SOLO_GPIO_CONFIG_0,4,2         ## @SOLO_GPIO_CONFIG_0
	.comm	_SOLO_GPIO_CONFIG_1,4,2         ## @SOLO_GPIO_CONFIG_1
	.no_dead_strip	_solo_gpio_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function solo_gpio_mode
_solo_gpio_mode:                        ; @solo_gpio_mode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _SOLO_GPIO_CONFIG_0@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SOLO_GPIO_CONFIG_0@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_solo_reg_read
	mov	x2, x0
	mov	w8, #0
	mov	w9, #0
	and	w10, w20, #0x3
	mov	w11, #3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w12, w21, w9
	lsl	w13, w11, w8
	bic	w13, w2, w13
	lsl	w14, w10, w8
	orr	w13, w13, w14
	tst	w12, #0x1
	csel	w2, w2, w13, eq
	add	w9, w9, #1
	add	w8, w8, #2
	cmp	w9, #16
	b.ne	LBB0_1
; %bb.2:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_solo_reg_write
Lloh2:
	adrp	x22, _SOLO_GPIO_CONFIG_1@GOTPAGE
Lloh3:
	ldr	x22, [x22, _SOLO_GPIO_CONFIG_1@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_solo_reg_read
	mov	x8, #0
	mov	w9, #1
	mov	w10, w21
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsr	x11, x10, x8
	lsl	x12, x9, x8
	orr	w13, w0, w12
	bic	w12, w0, w12
	cmp	w20, #0
	csel	w12, w13, w12, ne
	tst	w11, #0x10000
	csel	w0, w0, w12, eq
	add	x8, x8, #1
	cmp	x8, #16
	b.ne	LBB0_3
; %bb.4:
	orr	w2, w0, #0xffff0000
	ldr	w1, [x22]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_solo_reg_write
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_SOLO_GPIO_CONFIG_0,4,2         ; @SOLO_GPIO_CONFIG_0
	.comm	_SOLO_GPIO_CONFIG_1,4,2         ; @SOLO_GPIO_CONFIG_1
	.no_dead_strip	_solo_gpio_mode
.subsections_via_symbols
