	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crystalcove_gpio_dbg_show
_crystalcove_gpio_dbg_show:             ## @crystalcove_gpio_dbg_show
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_gpiochip_get_data
	movq	%rax, %r13
	movq	_CRYSTALCOVE_GPIO_NUM@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_3
## %bb.1:
	xorl	%r12d, %r12d
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %ebx
	movq	_CTRL_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_to_reg
	movl	%ebx, %edi
	movl	%eax, %esi
	leaq	-60(%rbp), %rdx
	callq	_regmap_read
	movl	(%r13), %ebx
	movq	_CTRL_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_to_reg
	movl	%ebx, %edi
	movl	%eax, %esi
	leaq	-56(%rbp), %rdx
	callq	_regmap_read
	movl	(%r13), %edi
	cmpl	$8, %r12d
	movq	_MGPIO1IRQS0@GOTPCREL(%rip), %rax
	cmovbq	_MGPIO0IRQS0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MGPIO1IRQSX@GOTPCREL(%rip), %rbx
	cmovbq	_MGPIO0IRQSX@GOTPCREL(%rip), %rbx
	movq	_GPIO1IRQ@GOTPCREL(%rip), %r15
	cmovbq	_GPIO0IRQ@GOTPCREL(%rip), %r15
	leaq	-52(%rbp), %rdx
	callq	_regmap_read
	movl	(%r13), %edi
	movl	(%rbx), %esi
	leaq	-48(%rbp), %rdx
	callq	_regmap_read
	movl	(%r13), %edi
	movl	(%r15), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	movl	%r12d, %r14d
	andl	$7, %r14d
	movl	-60(%rbp), %ecx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movq	_CTLO_DIR_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ecx, %eax
	leaq	L_.str.1(%rip), %rcx
	leaq	L_.str.2(%rip), %rax
	cmoveq	%rax, %rcx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movl	-56(%rbp), %eax
	testb	$1, %al
	leaq	L_.str.3(%rip), %rdx
	leaq	L_.str.4(%rip), %rcx
	cmoveq	%rcx, %rdx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	_CTLI_INTCNT_NE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	leaq	L_.str.5(%rip), %rdx
	leaq	L_.str.6(%rip), %rcx
	cmoveq	%rcx, %rdx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	_CTLI_INTCNT_PE@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	leaq	L_.str.7(%rip), %rax
	cmoveq	%rcx, %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	-52(%rbp), %r13d
	movl	%r14d, %edi
	callq	_BIT
	testl	%r13d, %eax
	leaq	L_.str.8(%rip), %r13
	leaq	L_.str.9(%rip), %rax
	cmoveq	%rax, %r13
	movl	-48(%rbp), %ebx
	movl	%r14d, %edi
	callq	_BIT
	testl	%ebx, %eax
	leaq	L_.str.10(%rip), %rbx
	leaq	L_.str.11(%rip), %rax
	cmoveq	%rax, %rbx
	movl	-44(%rbp), %r15d
	movl	%r14d, %edi
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	callq	_BIT
	testl	%r15d, %eax
	leaq	L_.str.12(%rip), %rax
	leaq	L_.str.13(%rip), %rcx
	cmoveq	%rcx, %rax
	subq	$8, %rsp
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movq	-104(%rbp), %r8                 ## 8-byte Reload
	movq	-88(%rbp), %r9                  ## 8-byte Reload
	pushq	%rax
	pushq	%rbx
	pushq	%r13
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	pushq	-120(%rbp)                      ## 8-byte Folded Reload
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	callq	_seq_printf
	movq	_CRYSTALCOVE_GPIO_NUM@GOTPCREL(%rip), %rax
	addq	$48, %rsp
	incl	%r12d
	cmpl	(%rax), %r12d
	jl	LBB0_2
LBB0_3:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CRYSTALCOVE_GPIO_NUM,4,2       ## @CRYSTALCOVE_GPIO_NUM
	.comm	_CTRL_OUT,4,2                   ## @CTRL_OUT
	.comm	_CTRL_IN,4,2                    ## @CTRL_IN
	.comm	_MGPIO0IRQS0,4,2                ## @MGPIO0IRQS0
	.comm	_MGPIO1IRQS0,4,2                ## @MGPIO1IRQS0
	.comm	_MGPIO0IRQSX,4,2                ## @MGPIO0IRQSX
	.comm	_MGPIO1IRQSX,4,2                ## @MGPIO1IRQSX
	.comm	_GPIO0IRQ,4,2                   ## @GPIO0IRQ
	.comm	_GPIO1IRQ,4,2                   ## @GPIO1IRQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" gpio-%-2d %s %s %s %s ctlo=%2x,%s %s %s\n"

	.comm	_CTLO_DIR_OUT,4,2               ## @CTLO_DIR_OUT
L_.str.1:                               ## @.str.1
	.asciz	"out"

L_.str.2:                               ## @.str.2
	.asciz	"in "

L_.str.3:                               ## @.str.3
	.asciz	"hi"

L_.str.4:                               ## @.str.4
	.asciz	"lo"

	.comm	_CTLI_INTCNT_NE,4,2             ## @CTLI_INTCNT_NE
L_.str.5:                               ## @.str.5
	.asciz	"fall"

L_.str.6:                               ## @.str.6
	.asciz	"    "

	.comm	_CTLI_INTCNT_PE,4,2             ## @CTLI_INTCNT_PE
L_.str.7:                               ## @.str.7
	.asciz	"rise"

L_.str.8:                               ## @.str.8
	.asciz	"s0 mask  "

L_.str.9:                               ## @.str.9
	.asciz	"s0 unmask"

L_.str.10:                              ## @.str.10
	.asciz	"sx mask  "

L_.str.11:                              ## @.str.11
	.asciz	"sx unmask"

L_.str.12:                              ## @.str.12
	.asciz	"pending"

L_.str.13:                              ## @.str.13
	.asciz	"       "

	.no_dead_strip	_crystalcove_gpio_dbg_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function crystalcove_gpio_dbg_show
_crystalcove_gpio_dbg_show:             ; @crystalcove_gpio_dbg_show
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x25, x0
	mov	x0, x1
	bl	_gpiochip_get_data
Lloh0:
	adrp	x8, _CRYSTALCOVE_GPIO_NUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CRYSTALCOVE_GPIO_NUM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x26, x0
	mov	w21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w23, [x26]
Lloh3:
	adrp	x8, _CTRL_OUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CTRL_OUT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_to_reg
	mov	x1, x0
	add	x2, sp, #60
	mov	x0, x23
	bl	_regmap_read
	ldr	w23, [x26]
Lloh6:
	adrp	x8, _CTRL_IN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CTRL_IN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_to_reg
	mov	x1, x0
	add	x2, sp, #56
	mov	x0, x23
	bl	_regmap_read
	ldr	w0, [x26]
	cmp	w21, #8
Lloh9:
	adrp	x8, _MGPIO0IRQS0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MGPIO0IRQS0@GOTPAGEOFF]
Lloh11:
	adrp	x9, _MGPIO1IRQS0@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MGPIO1IRQS0@GOTPAGEOFF]
	csel	x8, x8, x9, lo
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _MGPIO0IRQSX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MGPIO0IRQSX@GOTPAGEOFF]
Lloh15:
	adrp	x9, _MGPIO1IRQSX@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MGPIO1IRQSX@GOTPAGEOFF]
	csel	x23, x8, x9, lo
Lloh17:
	adrp	x8, _GPIO0IRQ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GPIO0IRQ@GOTPAGEOFF]
Lloh19:
	adrp	x9, _GPIO1IRQ@GOTPAGE
Lloh20:
	ldr	x9, [x9, _GPIO1IRQ@GOTPAGEOFF]
	csel	x24, x8, x9, lo
	add	x2, sp, #52
	bl	_regmap_read
	ldr	w0, [x26]
	ldr	w1, [x23]
	add	x2, sp, #48
	bl	_regmap_read
	ldr	w0, [x26]
	ldr	w1, [x24]
	add	x2, sp, #44
	bl	_regmap_read
	and	w23, w21, #0x7
	ldr	w24, [sp, #60]
Lloh21:
	adrp	x8, _CTLO_DIR_OUT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CTLO_DIR_OUT@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w24
Lloh24:
	adrp	x8, l_.str.1@PAGE
Lloh25:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh26:
	adrp	x9, l_.str.2@PAGE
Lloh27:
	add	x9, x9, l_.str.2@PAGEOFF
	csel	x11, x9, x8, eq
	ldr	w8, [sp, #56]
	tst	w8, #0x1
Lloh28:
	adrp	x9, l_.str.3@PAGE
Lloh29:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh30:
	adrp	x10, l_.str.4@PAGE
Lloh31:
	add	x10, x10, l_.str.4@PAGEOFF
	csel	x9, x10, x9, eq
	stp	x9, x11, [sp, #24]              ; 16-byte Folded Spill
Lloh32:
	adrp	x9, _CTLI_INTCNT_NE@GOTPAGE
Lloh33:
	ldr	x9, [x9, _CTLI_INTCNT_NE@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	tst	w9, w8
Lloh35:
	adrp	x9, l_.str.5@PAGE
Lloh36:
	add	x9, x9, l_.str.5@PAGEOFF
Lloh37:
	adrp	x10, l_.str.6@PAGE
Lloh38:
	add	x10, x10, l_.str.6@PAGEOFF
	csel	x27, x10, x9, eq
Lloh39:
	adrp	x9, _CTLI_INTCNT_PE@GOTPAGE
Lloh40:
	ldr	x9, [x9, _CTLI_INTCNT_PE@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	tst	w9, w8
Lloh42:
	adrp	x8, l_.str.7@PAGE
Lloh43:
	add	x8, x8, l_.str.7@PAGEOFF
	csel	x28, x10, x8, eq
	ldr	w19, [sp, #52]
	mov	x0, x23
	bl	_BIT
	tst	w0, w19
Lloh44:
	adrp	x8, l_.str.8@PAGE
Lloh45:
	add	x8, x8, l_.str.8@PAGEOFF
Lloh46:
	adrp	x9, l_.str.9@PAGE
Lloh47:
	add	x9, x9, l_.str.9@PAGEOFF
	csel	x19, x9, x8, eq
	ldr	w22, [sp, #48]
	mov	x0, x23
	bl	_BIT
	tst	w0, w22
Lloh48:
	adrp	x8, l_.str.10@PAGE
Lloh49:
	add	x8, x8, l_.str.10@PAGEOFF
Lloh50:
	adrp	x9, l_.str.11@PAGE
Lloh51:
	add	x9, x9, l_.str.11@PAGEOFF
	csel	x22, x9, x8, eq
	ldr	w20, [sp, #44]
	mov	x0, x23
	bl	_BIT
	tst	w0, w20
Lloh52:
	adrp	x8, l_.str.12@PAGE
Lloh53:
	add	x8, x8, l_.str.12@PAGEOFF
Lloh54:
	adrp	x9, l_.str.13@PAGE
Lloh55:
	add	x9, x9, l_.str.13@PAGEOFF
	csel	x8, x9, x8, eq
	stp	x22, x8, [sp, #8]
	str	x19, [sp]
	mov	x0, x25
Lloh56:
	adrp	x1, l_.str@PAGE
Lloh57:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	ldp	x4, x3, [sp, #24]               ; 16-byte Folded Reload
	mov	x5, x27
	mov	x6, x28
	mov	x7, x24
	bl	_seq_printf
Lloh58:
	adrp	x8, _CRYSTALCOVE_GPIO_NUM@GOTPAGE
Lloh59:
	ldr	x8, [x8, _CRYSTALCOVE_GPIO_NUM@GOTPAGEOFF]
	add	w21, w21, #1
Lloh60:
	ldr	w8, [x8]
	cmp	w21, w8
	b.lt	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CRYSTALCOVE_GPIO_NUM,4,2       ; @CRYSTALCOVE_GPIO_NUM
	.comm	_CTRL_OUT,4,2                   ; @CTRL_OUT
	.comm	_CTRL_IN,4,2                    ; @CTRL_IN
	.comm	_MGPIO0IRQS0,4,2                ; @MGPIO0IRQS0
	.comm	_MGPIO1IRQS0,4,2                ; @MGPIO1IRQS0
	.comm	_MGPIO0IRQSX,4,2                ; @MGPIO0IRQSX
	.comm	_MGPIO1IRQSX,4,2                ; @MGPIO1IRQSX
	.comm	_GPIO0IRQ,4,2                   ; @GPIO0IRQ
	.comm	_GPIO1IRQ,4,2                   ; @GPIO1IRQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" gpio-%-2d %s %s %s %s ctlo=%2x,%s %s %s\n"

	.comm	_CTLO_DIR_OUT,4,2               ; @CTLO_DIR_OUT
l_.str.1:                               ; @.str.1
	.asciz	"out"

l_.str.2:                               ; @.str.2
	.asciz	"in "

l_.str.3:                               ; @.str.3
	.asciz	"hi"

l_.str.4:                               ; @.str.4
	.asciz	"lo"

	.comm	_CTLI_INTCNT_NE,4,2             ; @CTLI_INTCNT_NE
l_.str.5:                               ; @.str.5
	.asciz	"fall"

l_.str.6:                               ; @.str.6
	.asciz	"    "

	.comm	_CTLI_INTCNT_PE,4,2             ; @CTLI_INTCNT_PE
l_.str.7:                               ; @.str.7
	.asciz	"rise"

l_.str.8:                               ; @.str.8
	.asciz	"s0 mask  "

l_.str.9:                               ; @.str.9
	.asciz	"s0 unmask"

l_.str.10:                              ; @.str.10
	.asciz	"sx mask  "

l_.str.11:                              ; @.str.11
	.asciz	"sx unmask"

l_.str.12:                              ; @.str.12
	.asciz	"pending"

l_.str.13:                              ; @.str.13
	.asciz	"       "

	.no_dead_strip	_crystalcove_gpio_dbg_show
.subsections_via_symbols
