	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wcove_gpio_dbg_show
_wcove_gpio_dbg_show:                   ## @wcove_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_gpiochip_get_data
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_WCOVE_GPIO_NUM@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_5
## %bb.1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%r13d, %r13d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	_GROUP0_NR_IRQS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	setge	%r13b
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %r15d
	movq	_CTRL_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_to_reg
	movl	%r15d, %edi
	movq	%rax, %rsi
	leaq	-64(%rbp), %rdx
	callq	_regmap_read
	movq	%rax, %r15
	movl	(%r14), %r12d
	movq	_CTRL_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_to_reg
	movl	%r12d, %edi
	movq	%rax, %rsi
	leaq	-60(%rbp), %rdx
	callq	_regmap_read
	movq	%rax, %r12
	addl	%r15d, %r12d
	movl	(%r14), %edi
	movq	_IRQ_MASK_BASE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r13, %rsi
	leaq	-56(%rbp), %rdx
	callq	_regmap_read
	movq	%rax, %rbx
	addl	%r12d, %ebx
	movl	(%r14), %edi
	movq	_IRQ_STATUS_BASE@GOTPCREL(%rip), %rax
	addq	(%rax), %r13
	movq	%r13, %rsi
	leaq	-52(%rbp), %rdx
	callq	_regmap_read
	addl	%ebx, %eax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %ebx
	andl	$7, %ebx
	movl	-64(%rbp), %ecx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	_CTLO_DIR_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ecx, %eax
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.3(%rip), %rax
	cmoveq	%rax, %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movl	-60(%rbp), %eax
	testb	$1, %al
	leaq	L_.str.4(%rip), %rdx
	leaq	L_.str.5(%rip), %rcx
	cmoveq	%rcx, %rdx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	_CTLI_INTCNT_NE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	leaq	L_.str.6(%rip), %r15
	leaq	L_.str.7(%rip), %rcx
	cmoveq	%rcx, %r15
	movq	_CTLI_INTCNT_PE@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	leaq	L_.str.8(%rip), %r13
	cmoveq	%rcx, %r13
	movl	-56(%rbp), %r14d
	movl	%ebx, %edi
	callq	_BIT
	testl	%r14d, %eax
	leaq	L_.str.9(%rip), %r14
	leaq	L_.str.10(%rip), %rax
	cmoveq	%rax, %r14
	movl	-52(%rbp), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_BIT
	testl	%eax, -48(%rbp)                 ## 4-byte Folded Reload
	leaq	L_.str.11(%rip), %rax
	leaq	L_.str.12(%rip), %rcx
	cmoveq	%rcx, %rax
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	movq	%r15, %r9
	pushq	%rax
	pushq	%r14
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	pushq	%r13
	callq	_seq_printf
	addq	$32, %rsp
	incl	%r12d
	movq	_WCOVE_GPIO_NUM@GOTPCREL(%rip), %rax
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	cmpl	(%rax), %r12d
	jl	LBB0_2
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
LBB0_5:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WCOVE_GPIO_NUM,4,2             ## @WCOVE_GPIO_NUM
	.comm	_GROUP0_NR_IRQS,4,2             ## @GROUP0_NR_IRQS
	.comm	_CTRL_OUT,4,2                   ## @CTRL_OUT
	.comm	_CTRL_IN,4,2                    ## @CTRL_IN
	.comm	_IRQ_MASK_BASE,8,3              ## @IRQ_MASK_BASE
	.comm	_IRQ_STATUS_BASE,8,3            ## @IRQ_STATUS_BASE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to read registers: ctrl out/in or irq status/mask\n"

L_.str.1:                               ## @.str.1
	.asciz	" gpio-%-2d %s %s %s %s ctlo=%2x,%s %s\n"

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

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

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

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

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

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

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

L_.str.9:                               ## @.str.9
	.asciz	"mask  "

L_.str.10:                              ## @.str.10
	.asciz	"unmask"

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

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

	.no_dead_strip	_wcove_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 wcove_gpio_dbg_show
_wcove_gpio_dbg_show:                   ; @wcove_gpio_dbg_show
	.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
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	mov	x0, x1
	bl	_gpiochip_get_data
Lloh0:
	adrp	x8, _WCOVE_GPIO_NUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WCOVE_GPIO_NUM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x20, x0
	mov	w21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
Lloh3:
	adrp	x8, _GROUP0_NR_IRQS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GROUP0_NR_IRQS@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x8]
	ldr	w23, [x20]
Lloh6:
	adrp	x8, _CTRL_OUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CTRL_OUT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_to_reg
	mov	x1, x0
	add	x2, sp, #44
	mov	x0, x23
	bl	_regmap_read
	mov	x23, x0
	ldr	w24, [x20]
Lloh9:
	adrp	x8, _CTRL_IN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CTRL_IN@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_to_reg
	mov	x1, x0
	add	x2, sp, #40
	mov	x0, x24
	bl	_regmap_read
	mov	x24, x0
	cmp	w21, w25
	ldr	w0, [x20]
Lloh12:
	adrp	x8, _IRQ_MASK_BASE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IRQ_MASK_BASE@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cinc	x1, x8, ge
	add	x2, sp, #36
	bl	_regmap_read
	cmp	w21, w25
	add	w8, w24, w23
	add	w23, w8, w0
	ldr	w0, [x20]
Lloh15:
	adrp	x8, _IRQ_STATUS_BASE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IRQ_STATUS_BASE@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cinc	x1, x8, ge
	add	x2, sp, #32
	bl	_regmap_read
	cmn	w23, w0
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	and	w23, w21, #0x7
	ldr	w24, [sp, #44]
Lloh18:
	adrp	x8, _CTLO_DIR_OUT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CTLO_DIR_OUT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w24
Lloh21:
	adrp	x8, l_.str.2@PAGE
Lloh22:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh23:
	adrp	x9, l_.str.3@PAGE
Lloh24:
	add	x9, x9, l_.str.3@PAGEOFF
	csel	x25, x9, x8, eq
	ldr	w8, [sp, #40]
	tst	w8, #0x1
Lloh25:
	adrp	x9, l_.str.4@PAGE
Lloh26:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh27:
	adrp	x10, l_.str.5@PAGE
Lloh28:
	add	x10, x10, l_.str.5@PAGEOFF
	csel	x26, x10, x9, eq
Lloh29:
	adrp	x9, _CTLI_INTCNT_NE@GOTPAGE
Lloh30:
	ldr	x9, [x9, _CTLI_INTCNT_NE@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	tst	w9, w8
Lloh32:
	adrp	x9, l_.str.6@PAGE
Lloh33:
	add	x9, x9, l_.str.6@PAGEOFF
Lloh34:
	adrp	x10, l_.str.7@PAGE
Lloh35:
	add	x10, x10, l_.str.7@PAGEOFF
	csel	x27, x10, x9, eq
Lloh36:
	adrp	x9, _CTLI_INTCNT_PE@GOTPAGE
Lloh37:
	ldr	x9, [x9, _CTLI_INTCNT_PE@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	tst	w9, w8
Lloh39:
	adrp	x8, l_.str.8@PAGE
Lloh40:
	add	x8, x8, l_.str.8@PAGEOFF
	csel	x28, x10, x8, eq
	ldr	w19, [sp, #36]
	mov	x0, x23
	bl	_BIT
	tst	w0, w19
Lloh41:
	adrp	x8, l_.str.9@PAGE
Lloh42:
	add	x8, x8, l_.str.9@PAGEOFF
Lloh43:
	adrp	x9, l_.str.10@PAGE
Lloh44:
	add	x9, x9, l_.str.10@PAGEOFF
	csel	x19, x9, x8, eq
	ldr	w22, [sp, #32]
	mov	x0, x23
	bl	_BIT
	tst	w0, w22
Lloh45:
	adrp	x8, l_.str.11@PAGE
Lloh46:
	add	x8, x8, l_.str.11@PAGEOFF
Lloh47:
	adrp	x9, l_.str.12@PAGE
Lloh48:
	add	x9, x9, l_.str.12@PAGEOFF
	csel	x8, x9, x8, eq
	stp	x19, x8, [sp]
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
Lloh49:
	adrp	x1, l_.str.1@PAGE
Lloh50:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	mov	x3, x25
	mov	x4, x26
	mov	x5, x27
	mov	x6, x28
	mov	x7, x24
	bl	_seq_printf
	add	w21, w21, #1
Lloh51:
	adrp	x8, _WCOVE_GPIO_NUM@GOTPAGE
Lloh52:
	ldr	x8, [x8, _WCOVE_GPIO_NUM@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	cmp	w21, w8
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
Lloh54:
	adrp	x0, l_.str@PAGE
Lloh55:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_WCOVE_GPIO_NUM,4,2             ; @WCOVE_GPIO_NUM
	.comm	_GROUP0_NR_IRQS,4,2             ; @GROUP0_NR_IRQS
	.comm	_CTRL_OUT,4,2                   ; @CTRL_OUT
	.comm	_CTRL_IN,4,2                    ; @CTRL_IN
	.comm	_IRQ_MASK_BASE,8,3              ; @IRQ_MASK_BASE
	.comm	_IRQ_STATUS_BASE,8,3            ; @IRQ_STATUS_BASE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to read registers: ctrl out/in or irq status/mask\n"

l_.str.1:                               ; @.str.1
	.asciz	" gpio-%-2d %s %s %s %s ctlo=%2x,%s %s\n"

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

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

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

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

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

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

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

l_.str.9:                               ; @.str.9
	.asciz	"mask  "

l_.str.10:                              ; @.str.10
	.asciz	"unmask"

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

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

	.no_dead_strip	_wcove_gpio_dbg_show
.subsections_via_symbols
