	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpio_config
_gpio_config:                           ## @gpio_config
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r12
	movq	_HDMI_MAX_NUM_GPIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%esi, %esi
	je	LBB0_6
## %bb.1:
	leaq	L_.str(%rip), %r14
	testl	%eax, %eax
	jle	LBB0_15
## %bb.2:
	movl	$16, %r14d
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_gpiod_direction_input
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_gpiod_set_value_cansleep
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movq	_HDMI_MAX_NUM_GPIO@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$24, %r14
	cmpq	%rax, %r13
	jge	LBB0_14
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	-8(%rax,%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-16(%rax,%r14), %r15d
	cmpq	$0, (%rax,%r14)
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_gpiod_direction_output
	jmp	LBB0_13
LBB0_14:
	leaq	L_.str(%rip), %r14
	jmp	LBB0_15
LBB0_6:
	leaq	L_.str.1(%rip), %r14
	testl	%eax, %eax
	jle	LBB0_15
## %bb.7:
	movl	$16, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	addq	$24, %rbx
	cmpq	%rcx, %r15
	jge	LBB0_15
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rcx
	movq	-8(%rcx,%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpq	$0, (%rcx,%rbx)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	xorl	%esi, %esi
	cmpl	$0, -16(%rcx,%rbx)
	sete	%sil
	callq	_gpiod_set_value_cansleep
	movq	_HDMI_MAX_NUM_GPIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_15:
	movq	%r14, %rdi
	callq	_DBG
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_MAX_NUM_GPIO,4,2          ## @HDMI_MAX_NUM_GPIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gpio on"

L_.str.1:                               ## @.str.1
	.asciz	"gpio off"

	.no_dead_strip	_gpio_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpio_config
_gpio_config:                           ; @gpio_config
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x22, [x0]
Lloh0:
	adrp	x23, _HDMI_MAX_NUM_GPIO@GOTPAGE
Lloh1:
	ldr	x23, [x23, _HDMI_MAX_NUM_GPIO@GOTPAGEOFF]
	ldr	w8, [x23]
	cbz	w1, LBB0_8
; %bb.1:
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.2:
	mov	x24, #0
	mov	x25, #0
Lloh2:
	adrp	x19, l_.str@PAGE
Lloh3:
	add	x19, x19, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_gpiod_direction_input
	mov	x0, x20
	mov	x1, x21
	bl	_gpiod_set_value_cansleep
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x23]
	add	x24, x24, #24
	cmp	x25, x8
	b.ge	LBB0_16
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x8, x8, x24
	ldr	x20, [x8, #8]
	cbz	x20, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w21, [x8]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_gpiod_direction_output
	b	LBB0_4
LBB0_8:
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.9:
	mov	x20, #0
	mov	x21, #0
Lloh4:
	adrp	x19, l_.str.1@PAGE
Lloh5:
	add	x19, x19, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x21, x21, #1
	add	x20, x20, #24
	cmp	x21, w8, sxtw
	b.ge	LBB0_16
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22]
	add	x9, x9, x20
	ldr	x0, [x9, #8]
	cbz	x0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x10, [x9, #16]
	cbz	x10, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x9]
	cmp	w8, #0
	cset	w1, eq
	bl	_gpiod_set_value_cansleep
	ldr	w8, [x23]
	b	LBB0_10
LBB0_14:
Lloh6:
	adrp	x19, l_.str@PAGE
Lloh7:
	add	x19, x19, l_.str@PAGEOFF
	b	LBB0_16
LBB0_15:
Lloh8:
	adrp	x19, l_.str.1@PAGE
Lloh9:
	add	x19, x19, l_.str.1@PAGEOFF
LBB0_16:
	mov	x0, x19
	bl	_DBG
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_MAX_NUM_GPIO,4,2          ; @HDMI_MAX_NUM_GPIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gpio on"

l_.str.1:                               ; @.str.1
	.asciz	"gpio off"

	.no_dead_strip	_gpio_config
.subsections_via_symbols
