	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adnp_gpio_dbg_show
_adnp_gpio_dbg_show:                    ## @adnp_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, %r15
	movq	%rsi, %rdi
	callq	_gpiochip_get_data
	movq	%rax, %r14
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rbx
	addq	$4, %rbx
	xorl	%r13d, %r13d
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	callq	_GPIO_DDR
	movl	%r13d, %r13d
	leaq	(%rax,%r13), %rsi
	movq	%r14, %rdi
	leaq	-64(%rbp), %rdx
	callq	_adnp_read
	testl	%eax, %eax
	js	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_GPIO_PLR
	leaq	(%rax,%r13), %rsi
	movq	%r14, %rdi
	leaq	-60(%rbp), %rdx
	callq	_adnp_read
	testl	%eax, %eax
	js	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_GPIO_IER
	leaq	(%rax,%r13), %rsi
	movq	%r14, %rdi
	leaq	-56(%rbp), %rdx
	callq	_adnp_read
	testl	%eax, %eax
	js	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_GPIO_ISR
	leaq	(%rax,%r13), %rsi
	movq	%r14, %rdi
	leaq	-52(%rbp), %rdx
	callq	_adnp_read
	testl	%eax, %eax
	js	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_mutex_unlock
	xorl	%r12d, %r12d
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r14), %ecx
	movl	%r13d, %r15d
	shll	%cl, %r15d
	addl	%r12d, %r15d
	movl	-64(%rbp), %ebx
	movl	%r12d, %edi
	callq	_BIT
	testl	%ebx, %eax
	leaq	L_.str.4(%rip), %r13
	leaq	L_.str(%rip), %rax
	cmoveq	%rax, %r13
	movl	-60(%rbp), %ebx
	movl	%r12d, %edi
	callq	_BIT
	testl	%ebx, %eax
	leaq	L_.str.5(%rip), %r14
	leaq	L_.str.1(%rip), %rax
	cmoveq	%rax, %r14
	movl	-56(%rbp), %ebx
	movl	%r12d, %edi
	callq	_BIT
	testl	%ebx, %eax
	leaq	L_.str.6(%rip), %rbx
	leaq	L_.str.2(%rip), %rax
	cmoveq	%rax, %rbx
	movl	-52(%rbp), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r12d, %edi
	callq	_BIT
	testl	%eax, -48(%rbp)                 ## 4-byte Folded Reload
	leaq	L_.str.7(%rip), %rax
	leaq	L_.str.3(%rip), %rcx
	cmoveq	%rcx, %rax
	movq	%rax, (%rsp)
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.8(%rip), %rsi
	movl	%r15d, %edx
	movq	%r13, %rcx
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movq	%r14, %r8
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%rbx, %r9
	callq	_seq_printf
	incl	%r12d
	cmpl	$8, %r12d
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	%r13d
	movl	%r13d, %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %eax
	testl	%eax, %eax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_1
	jmp	LBB0_9
LBB0_8:
	movq	%rbx, %rdi
	callq	_mutex_unlock
LBB0_9:
	addq	$72, %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	"input "

L_.str.1:                               ## @.str.1
	.asciz	"low "

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

L_.str.3:                               ## @.str.3
	.space	1

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

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

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

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

L_.str.8:                               ## @.str.8
	.asciz	"%2u: %s %s IRQ %s %s\n"

	.no_dead_strip	_adnp_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 adnp_gpio_dbg_show
_adnp_gpio_dbg_show:                    ; @adnp_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	x19, x0
	mov	x0, x1
	bl	_gpiochip_get_data
	mov	x24, x0
	mov	w23, #0
	mov	x20, x0
	ldr	w8, [x20], #4
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
Lloh0:
	adrp	x26, l_.str.4@PAGE
Lloh1:
	add	x26, x26, l_.str.4@PAGEOFF
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
Lloh4:
	adrp	x27, l_.str.5@PAGE
Lloh5:
	add	x27, x27, l_.str.5@PAGEOFF
Lloh6:
	adrp	x28, l_.str.1@PAGE
Lloh7:
	add	x28, x28, l_.str.1@PAGEOFF
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	str	x0, [sp, #32]                   ; 8-byte Folded Spill
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x24
	bl	_GPIO_DDR
	mov	w23, w23
	add	x1, x0, x23
	add	x2, sp, #60
	mov	x0, x24
	bl	_adnp_read
	tbnz	w0, #31, LBB0_8
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x24
	bl	_GPIO_PLR
	add	x1, x0, x23
	add	x2, sp, #56
	mov	x0, x24
	bl	_adnp_read
	tbnz	w0, #31, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x24
	bl	_GPIO_IER
	add	x1, x0, x23
	add	x2, sp, #52
	mov	x0, x24
	bl	_adnp_read
	tbnz	w0, #31, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x24
	bl	_GPIO_ISR
	add	x1, x0, x23
	add	x2, sp, #48
	mov	x0, x24
	bl	_adnp_read
	tbnz	w0, #31, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_mutex_unlock
	str	x23, [sp, #40]                  ; 8-byte Folded Spill
	mov	w23, #0
LBB0_6:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x24]
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	lsl	w8, w9, w8
	add	w24, w23, w8
	ldr	w25, [sp, #60]
	mov	x0, x23
	bl	_BIT
	tst	w0, w25
	csel	x25, x22, x26, eq
	mov	x19, x22
	mov	x22, x26
	ldr	w26, [sp, #56]
	mov	x0, x23
	bl	_BIT
	tst	w0, w26
	csel	x26, x28, x27, eq
	mov	x21, x27
	ldr	w27, [sp, #52]
	mov	x0, x23
	bl	_BIT
	tst	w0, w27
Lloh8:
	adrp	x8, l_.str.6@PAGE
Lloh9:
	add	x8, x8, l_.str.6@PAGEOFF
Lloh10:
	adrp	x9, l_.str.2@PAGE
Lloh11:
	add	x9, x9, l_.str.2@PAGEOFF
	csel	x27, x9, x8, eq
	ldr	w20, [sp, #48]
	mov	x0, x23
	bl	_BIT
	tst	w0, w20
Lloh12:
	adrp	x8, l_.str.7@PAGE
Lloh13:
	add	x8, x8, l_.str.7@PAGEOFF
Lloh14:
	adrp	x9, l_.str.3@PAGE
Lloh15:
	add	x9, x9, l_.str.3@PAGEOFF
	csel	x6, x9, x8, eq
Lloh16:
	adrp	x1, l_.str.8@PAGE
Lloh17:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x2, x24
	ldp	x0, x24, [sp, #24]              ; 16-byte Folded Reload
	mov	x3, x25
	mov	x4, x26
	mov	x26, x22
	mov	x22, x19
	mov	x5, x27
	mov	x27, x21
	bl	_seq_printf
	add	w23, w23, #1
	cmp	w23, #8
	b.ne	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	w23, w8, #1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	lsr	w8, w23, w8
	ldr	x20, [sp, #16]                  ; 8-byte Folded Reload
	cbz	w8, LBB0_1
	b	LBB0_9
LBB0_8:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_9:
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"input "

l_.str.1:                               ; @.str.1
	.asciz	"low "

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

l_.str.3:                               ; @.str.3
	.space	1

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

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

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

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

l_.str.8:                               ; @.str.8
	.asciz	"%2u: %s %s IRQ %s %s\n"

	.no_dead_strip	_adnp_gpio_dbg_show
.subsections_via_symbols
