	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function egpio_write_cache
_egpio_write_cache:                     ## @egpio_write_cache
	.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	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.1:
	movq	%rdi, %r15
	xorl	%esi, %esi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %eax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rsi
	movslq	%eax, %rcx
	cmpq	%rcx, %rsi
	jge	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	16(%r15), %rcx
	movq	%rsi, %rdx
	shlq	$4, %rdx
	cmpl	$0, (%rcx,%rdx)
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 12(%rcx,%rdx)
	jle	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rdx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rdx), %r14
	addq	$12, %r14
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	movzbl	4(%r15), %ecx
	movl	$1, %eax
	shll	%cl, %eax
	addl	%eax, %ebx
	cmpl	(%r14), %ebx
	jge	LBB0_8
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-8(%r14), %r13d
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_egpio_pos
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	movl	%ebx, %ecx
	sarl	%cl, %edx
	movl	%eax, %r12d
	movl	8(%r15), %eax
	testl	%eax, %edx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	addl	%r13d, %r12d
	movl	-4(%r14), %r13d
	movl	%ebx, %ecx
	sarl	%cl, %r13d
	andl	%eax, %r13d
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_egpio_readw
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_pr_debug
	movl	-4(%r14), %edi
	movl	%ebx, %ecx
	sarl	%cl, %edi
	andl	8(%r15), %edi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_egpio_writew
	jmp	LBB0_7
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EGPIO: setting %x to %x, was %x\n"

	.no_dead_strip	_egpio_write_cache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function egpio_write_cache
_egpio_write_cache:                     ; @egpio_write_cache
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x19, x0
	mov	x24, #0
	mov	w25, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	cmp	x24, w8, sxtw
	b.ge	LBB0_10
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x9, [x19, #16]
	add	x26, x9, x24, lsl #4
	ldr	w10, [x26]
	cbz	w10, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, x26
	ldr	w10, [x27, #12]!
	cmp	w10, #1
	b.lt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w21, #0
	add	x8, x9, x24, lsl #4
	add	x28, x8, #4
	add	x20, x8, #8
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	w8, [x19, #4]
	lsl	w8, w25, w8
	ldr	w9, [x27]
	add	w21, w8, w21
	cmp	w21, w9
	b.ge	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w22, [x28]
	mov	x0, x19
	mov	x1, x21
	bl	_egpio_pos
	ldr	w8, [x26]
	asr	w9, w8, w21
	ldr	w8, [x19, #8]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	add	w22, w0, w22
	ldr	w9, [x20]
	asr	w9, w9, w21
	and	w23, w9, w8
	mov	x0, x19
	mov	x1, x22
	bl	_egpio_readw
	mov	x3, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x23
	bl	_pr_debug
	ldr	w8, [x20]
	asr	w8, w8, w21
	ldr	w9, [x19, #8]
	and	w0, w8, w9
	mov	x1, x19
	mov	x2, x22
	bl	_egpio_writew
	b	LBB0_7
LBB0_10:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EGPIO: setting %x to %x, was %x\n"

	.no_dead_strip	_egpio_write_cache
.subsections_via_symbols
