	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_of_find_gpio                   ## -- Begin function of_find_gpio
	.p2align	4, 0x90
_of_find_gpio:                          ## @of_find_gpio
	.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	%rcx, -112(%rbp)                ## 8-byte Spill
	movl	%edx, -100(%rbp)                ## 4-byte Spill
	movq	%rsi, %r12
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_gpio_suffixes@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	-80(%rbp), %r14
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%rax,%r13,8), %r8
	movq	%r14, %rdi
	movl	$32, %esi
	testq	%r12, %r12
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.1(%rip), %rdx
	movq	%r8, %rcx
	xorl	%eax, %eax
	callq	_snprintf
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	%r14, %rsi
	movl	-100(%rbp), %edx                ## 4-byte Reload
	leaq	-84(%rbp), %rcx
	callq	_of_get_named_gpiod_flags
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %r13
	jb	LBB0_4
	jmp	LBB0_9
LBB0_1:
                                        ## implicit-def: $rbx
LBB0_9:
	movq	%rbx, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_12
## %bb.11:
	leaq	-84(%rbp), %rdx
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_of_find_spi_gpio
	movq	%rax, %rbx
LBB0_12:
	movq	%rbx, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_15
## %bb.14:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	-100(%rbp), %edx                ## 4-byte Reload
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	callq	_of_find_spi_cs_gpio
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_35
LBB0_15:
	movq	%rbx, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_18
## %bb.17:
	leaq	-84(%rbp), %rdx
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_of_find_regulator_gpio
	movq	%rax, %rbx
LBB0_18:
	movq	%rbx, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_21
## %bb.19:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_21
## %bb.20:
	leaq	-84(%rbp), %rdx
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_of_find_arizona_gpio
	movq	%rax, %rbx
LBB0_21:
	movq	%rbx, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_35
## %bb.22:
	movl	-84(%rbp), %eax
	movq	_OF_GPIO_ACTIVE_LOW@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	je	LBB0_24
## %bb.23:
	movq	_GPIO_ACTIVE_LOW@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orq	%rcx, (%rdx)
LBB0_24:
	movq	_OF_GPIO_SINGLE_ENDED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_29
## %bb.25:
	movq	_OF_GPIO_OPEN_DRAIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	jne	LBB0_26
## %bb.27:
	movq	_GPIO_OPEN_SOURCE@GOTPCREL(%rip), %rcx
	jmp	LBB0_28
LBB0_26:
	movq	_GPIO_OPEN_DRAIN@GOTPCREL(%rip), %rcx
LBB0_28:
	movq	(%rcx), %rcx
	orq	%rcx, (%rdx)
LBB0_29:
	movq	_OF_GPIO_TRANSITORY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_31
## %bb.30:
	movq	_GPIO_TRANSITORY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orq	%rcx, (%rdx)
LBB0_31:
	movq	_OF_GPIO_PULL_UP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_33
## %bb.32:
	movq	_GPIO_PULL_UP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orq	%rcx, (%rdx)
LBB0_33:
	movq	_OF_GPIO_PULL_DOWN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_35
## %bb.34:
	movq	_GPIO_PULL_DOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	orq	%rax, (%rdx)
LBB0_35:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_37
## %bb.36:
	movq	%rbx, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_37:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_gpio_suffixes,8,3              ## @gpio_suffixes
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s-%s"

L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_OF_GPIO_ACTIVE_LOW,4,2         ## @OF_GPIO_ACTIVE_LOW
	.comm	_GPIO_ACTIVE_LOW,8,3            ## @GPIO_ACTIVE_LOW
	.comm	_OF_GPIO_SINGLE_ENDED,4,2       ## @OF_GPIO_SINGLE_ENDED
	.comm	_OF_GPIO_OPEN_DRAIN,4,2         ## @OF_GPIO_OPEN_DRAIN
	.comm	_GPIO_OPEN_DRAIN,8,3            ## @GPIO_OPEN_DRAIN
	.comm	_GPIO_OPEN_SOURCE,8,3           ## @GPIO_OPEN_SOURCE
	.comm	_OF_GPIO_TRANSITORY,4,2         ## @OF_GPIO_TRANSITORY
	.comm	_GPIO_TRANSITORY,8,3            ## @GPIO_TRANSITORY
	.comm	_OF_GPIO_PULL_UP,4,2            ## @OF_GPIO_PULL_UP
	.comm	_GPIO_PULL_UP,8,3               ## @GPIO_PULL_UP
	.comm	_OF_GPIO_PULL_DOWN,4,2          ## @OF_GPIO_PULL_DOWN
	.comm	_GPIO_PULL_DOWN,8,3             ## @GPIO_PULL_DOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_of_find_gpio                   ; -- Begin function of_find_gpio
	.p2align	2
_of_find_gpio:                          ; @of_find_gpio
	.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, x3
	mov	x23, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
Lloh3:
	adrp	x27, _gpio_suffixes@GOTPAGE
Lloh4:
	ldr	x27, [x27, _gpio_suffixes@GOTPAGEOFF]
	ldr	x0, [x27]
	bl	_ARRAY_SIZE
Lloh5:
	adrp	x26, _ENOENT@GOTPAGE
Lloh6:
	ldr	x26, [x26, _ENOENT@GOTPAGEOFF]
	cbz	w0, LBB0_8
; %bb.1:
	mov	x28, #0
Lloh7:
	adrp	x24, l_.str.1@PAGE
Lloh8:
	add	x24, x24, l_.str.1@PAGEOFF
Lloh9:
	adrp	x25, l_.str@PAGE
Lloh10:
	add	x25, x25, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x27]
	ldr	x3, [x8, x28, lsl #3]
	cbz	x21, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x3, [sp]
	add	x0, sp, #24
	mov	w1, #32
	mov	x2, x25
	mov	x3, x21
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x0, sp, #24
	mov	w1, #32
	mov	x2, x24
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_snprintf
	ldr	w0, [x22]
	add	x1, sp, #24
	add	x3, sp, #20
	mov	x2, x23
	bl	_of_get_named_gpiod_flags
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_PTR_ERR
	ldr	w8, [x26]
	cmn	w0, w8
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x28, x28, #1
	ldr	x0, [x27]
	bl	_ARRAY_SIZE
	cmp	x28, w0, uxtw
	b.lo	LBB0_2
	b	LBB0_9
LBB0_8:
                                        ; implicit-def: $x20
LBB0_9:
	mov	x0, x20
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.10:
	mov	x0, x20
	bl	_PTR_ERR
	ldr	w8, [x26]
	cmn	w0, w8
	b.ne	LBB0_12
; %bb.11:
	add	x2, sp, #20
	mov	x0, x22
	mov	x1, x21
	bl	_of_find_spi_gpio
	mov	x20, x0
LBB0_12:
	mov	x0, x20
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.13:
	mov	x0, x20
	bl	_PTR_ERR
	ldr	w8, [x26]
	cmn	w0, w8
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	mov	x3, x19
	bl	_of_find_spi_cs_gpio
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_32
LBB0_15:
	mov	x0, x20
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.16:
	mov	x0, x20
	bl	_PTR_ERR
	ldr	w8, [x26]
	cmn	w0, w8
	b.ne	LBB0_18
; %bb.17:
	add	x2, sp, #20
	mov	x0, x22
	mov	x1, x21
	bl	_of_find_regulator_gpio
	mov	x20, x0
LBB0_18:
	mov	x0, x20
	bl	_IS_ERR
	cbz	x0, LBB0_21
; %bb.19:
	mov	x0, x20
	bl	_PTR_ERR
	ldr	w8, [x26]
	cmn	w0, w8
	b.ne	LBB0_21
; %bb.20:
	add	x2, sp, #20
	mov	x0, x22
	mov	x1, x21
	bl	_of_find_arizona_gpio
	mov	x20, x0
LBB0_21:
	mov	x0, x20
	bl	_IS_ERR
	cbnz	x0, LBB0_32
; %bb.22:
	ldr	w8, [sp, #20]
Lloh11:
	adrp	x9, _OF_GPIO_ACTIVE_LOW@GOTPAGE
Lloh12:
	ldr	x9, [x9, _OF_GPIO_ACTIVE_LOW@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_24
; %bb.23:
Lloh14:
	adrp	x9, _GPIO_ACTIVE_LOW@GOTPAGE
Lloh15:
	ldr	x9, [x9, _GPIO_ACTIVE_LOW@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	ldr	x10, [x19]
	orr	x9, x10, x9
	str	x9, [x19]
LBB0_24:
Lloh17:
	adrp	x9, _OF_GPIO_SINGLE_ENDED@GOTPAGE
Lloh18:
	ldr	x9, [x9, _OF_GPIO_SINGLE_ENDED@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_26
; %bb.25:
Lloh20:
	adrp	x9, _OF_GPIO_OPEN_DRAIN@GOTPAGE
Lloh21:
	ldr	x9, [x9, _OF_GPIO_OPEN_DRAIN@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	adrp	x10, _GPIO_OPEN_SOURCE@GOTPAGE
Lloh24:
	ldr	x10, [x10, _GPIO_OPEN_SOURCE@GOTPAGEOFF]
Lloh25:
	adrp	x11, _GPIO_OPEN_DRAIN@GOTPAGE
Lloh26:
	ldr	x11, [x11, _GPIO_OPEN_DRAIN@GOTPAGEOFF]
	tst	w9, w8
	csel	x9, x10, x11, eq
	ldr	x9, [x9]
	ldr	x10, [x19]
	orr	x9, x10, x9
	str	x9, [x19]
LBB0_26:
Lloh27:
	adrp	x9, _OF_GPIO_TRANSITORY@GOTPAGE
Lloh28:
	ldr	x9, [x9, _OF_GPIO_TRANSITORY@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_28
; %bb.27:
Lloh30:
	adrp	x9, _GPIO_TRANSITORY@GOTPAGE
Lloh31:
	ldr	x9, [x9, _GPIO_TRANSITORY@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	ldr	x10, [x19]
	orr	x9, x10, x9
	str	x9, [x19]
LBB0_28:
Lloh33:
	adrp	x9, _OF_GPIO_PULL_UP@GOTPAGE
Lloh34:
	ldr	x9, [x9, _OF_GPIO_PULL_UP@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_30
; %bb.29:
Lloh36:
	adrp	x9, _GPIO_PULL_UP@GOTPAGE
Lloh37:
	ldr	x9, [x9, _GPIO_PULL_UP@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	ldr	x10, [x19]
	orr	x9, x10, x9
	str	x9, [x19]
LBB0_30:
Lloh39:
	adrp	x9, _OF_GPIO_PULL_DOWN@GOTPAGE
Lloh40:
	ldr	x9, [x9, _OF_GPIO_PULL_DOWN@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_32
; %bb.31:
Lloh42:
	adrp	x8, _GPIO_PULL_DOWN@GOTPAGE
Lloh43:
	ldr	x8, [x8, _GPIO_PULL_DOWN@GOTPAGEOFF]
Lloh44:
	ldr	x8, [x8]
	ldr	x9, [x19]
	orr	x8, x9, x8
	str	x8, [x19]
LBB0_32:
	ldr	x8, [sp, #56]
Lloh45:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh46:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_34
; %bb.33:
	mov	x0, x20
	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
LBB0_34:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_gpio_suffixes,8,3              ; @gpio_suffixes
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s-%s"

l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_OF_GPIO_ACTIVE_LOW,4,2         ; @OF_GPIO_ACTIVE_LOW
	.comm	_GPIO_ACTIVE_LOW,8,3            ; @GPIO_ACTIVE_LOW
	.comm	_OF_GPIO_SINGLE_ENDED,4,2       ; @OF_GPIO_SINGLE_ENDED
	.comm	_OF_GPIO_OPEN_DRAIN,4,2         ; @OF_GPIO_OPEN_DRAIN
	.comm	_GPIO_OPEN_DRAIN,8,3            ; @GPIO_OPEN_DRAIN
	.comm	_GPIO_OPEN_SOURCE,8,3           ; @GPIO_OPEN_SOURCE
	.comm	_OF_GPIO_TRANSITORY,4,2         ; @OF_GPIO_TRANSITORY
	.comm	_GPIO_TRANSITORY,8,3            ; @GPIO_TRANSITORY
	.comm	_OF_GPIO_PULL_UP,4,2            ; @OF_GPIO_PULL_UP
	.comm	_GPIO_PULL_UP,8,3               ; @GPIO_PULL_UP
	.comm	_OF_GPIO_PULL_DOWN,4,2          ; @OF_GPIO_PULL_DOWN
	.comm	_GPIO_PULL_DOWN,8,3             ; @GPIO_PULL_DOWN
.subsections_via_symbols
