	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5c73m3_parse_gpios
_s5c73m3_parse_gpios:                   ## @s5c73m3_parse_gpios
	.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
	movq	_GPIO_NUM@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_5
## %bb.1:
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r13
	leaq	_s5c73m3_parse_gpios.prop_names(%rip), %r14
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	leaq	-44(%rbp), %rcx
	callq	_of_get_named_gpio_flags
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rcx
	movl	%eax, (%rcx,%r12,8)
	movq	_OF_GPIO_ACTIVE_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edx, %edx
	andl	-44(%rbp), %eax
	sete	%dl
	movl	%edx, 4(%rcx,%r12,8)
	incq	%r12
	movq	_GPIO_NUM@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$8, %r14
	cmpq	%rax, %r12
	jl	LBB0_2
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str.2(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__const
	.p2align	4                               ## @s5c73m3_parse_gpios.prop_names
_s5c73m3_parse_gpios.prop_names:
	.quad	L_.str
	.quad	L_.str.1

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"standby-gpios"

L_.str.1:                               ## @.str.1
	.asciz	"xshutdown-gpios"

	.comm	_GPIO_NUM,4,2                   ## @GPIO_NUM
L_.str.2:                               ## @.str.2
	.asciz	"failed to parse %s DT property\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_OF_GPIO_ACTIVE_LOW,4,2         ## @OF_GPIO_ACTIVE_LOW
	.no_dead_strip	_s5c73m3_parse_gpios
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5c73m3_parse_gpios
_s5c73m3_parse_gpios:                   ; @s5c73m3_parse_gpios
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x23, _GPIO_NUM@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GPIO_NUM@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x24, #0
	mov	x25, #0
	ldr	x20, [x0, #8]
	ldr	x21, [x20]
Lloh2:
	adrp	x26, _s5c73m3_parse_gpios.prop_names@PAGE
Lloh3:
	add	x26, x26, _s5c73m3_parse_gpios.prop_names@PAGEOFF
Lloh4:
	adrp	x27, _OF_GPIO_ACTIVE_LOW@GOTPAGE
Lloh5:
	ldr	x27, [x27, _OF_GPIO_ACTIVE_LOW@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x26, x24]
	add	x3, sp, #12
	mov	x0, x21
	mov	x1, x22
	mov	w2, #0
	bl	_of_get_named_gpio_flags
	tbnz	w0, #31, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	add	x8, x8, x24
	str	w0, [x8]
	ldr	w9, [sp, #12]
	ldr	w10, [x27]
	tst	w10, w9
	cset	w9, eq
	str	w9, [x8, #4]
	add	x25, x25, #1
	ldrsw	x8, [x23]
	add	x24, x24, #8
	cmp	x25, x8
	b.lt	LBB0_2
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_dev_err
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @s5c73m3_parse_gpios.prop_names
_s5c73m3_parse_gpios.prop_names:
	.quad	l_.str
	.quad	l_.str.1

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"standby-gpios"

l_.str.1:                               ; @.str.1
	.asciz	"xshutdown-gpios"

	.comm	_GPIO_NUM,4,2                   ; @GPIO_NUM
l_.str.2:                               ; @.str.2
	.asciz	"failed to parse %s DT property\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_OF_GPIO_ACTIVE_LOW,4,2         ; @OF_GPIO_ACTIVE_LOW
	.no_dead_strip	_s5c73m3_parse_gpios
.subsections_via_symbols
