	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5k5baf_parse_gpios
_s5k5baf_parse_gpios:                   ## @s5k5baf_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	_NUM_GPIOS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_5
## %bb.1:
	movq	%rdi, %r13
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	_s5k5baf_parse_gpios.names(%rip), %r12
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %r14
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	xorl	%edx, %edx
	leaq	-44(%rbp), %rcx
	callq	_of_get_named_gpio_flags
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, (%r13,%r15,8)
	movq	_OF_GPIO_ACTIVE_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	-44(%rbp), %eax
	sete	%cl
	movl	%ecx, 4(%r13,%r15,8)
	incq	%r15
	movq	_NUM_GPIOS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$8, %r12
	cmpq	%rax, %r15
	jl	LBB0_2
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str.2(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_dev_err
LBB0_6:
	movl	%ebx, %eax
	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                               ## @s5k5baf_parse_gpios.names
_s5k5baf_parse_gpios.names:
	.quad	L_.str
	.quad	L_.str.1

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

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

	.comm	_NUM_GPIOS,4,2                  ## @NUM_GPIOS
L_.str.2:                               ## @.str.2
	.asciz	"no %s GPIO pin provided\n"

	.comm	_OF_GPIO_ACTIVE_LOW,4,2         ## @OF_GPIO_ACTIVE_LOW
	.no_dead_strip	_s5k5baf_parse_gpios
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5k5baf_parse_gpios
_s5k5baf_parse_gpios:                   ; @s5k5baf_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, _NUM_GPIOS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NUM_GPIOS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x19, x1
	mov	x24, #0
	ldr	x20, [x1]
	add	x25, x0, #4
Lloh2:
	adrp	x26, _OF_GPIO_ACTIVE_LOW@GOTPAGE
Lloh3:
	ldr	x26, [x26, _OF_GPIO_ACTIVE_LOW@GOTPAGEOFF]
Lloh4:
	adrp	x27, _s5k5baf_parse_gpios.names@PAGE
Lloh5:
	add	x27, x27, _s5k5baf_parse_gpios.names@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x27, x24, lsl #3]
	add	x3, sp, #12
	mov	x0, x20
	mov	x1, x22
	mov	w2, #0
	bl	_of_get_named_gpio_flags
	mov	x21, x0
	tbnz	w0, #31, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	stur	w21, [x25, #-4]
	ldr	w8, [sp, #12]
	ldr	w9, [x26]
	tst	w9, w8
	cset	w8, eq
	str	w8, [x25], #8
	add	x24, x24, #1
	ldrsw	x8, [x23]
	cmp	x24, x8
	b.lt	LBB0_2
LBB0_4:
	mov	w21, #0
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_dev_err
LBB0_6:
	mov	x0, x21
	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 AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @s5k5baf_parse_gpios.names
_s5k5baf_parse_gpios.names:
	.quad	l_.str
	.quad	l_.str.1

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

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

	.comm	_NUM_GPIOS,4,2                  ; @NUM_GPIOS
l_.str.2:                               ; @.str.2
	.asciz	"no %s GPIO pin provided\n"

	.comm	_OF_GPIO_ACTIVE_LOW,4,2         ; @OF_GPIO_ACTIVE_LOW
	.no_dead_strip	_s5k5baf_parse_gpios
.subsections_via_symbols
