	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5c73m3_configure_gpios
_s5c73m3_configure_gpios:               ## @s5c73m3_configure_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
	pushq	%rax
	.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_7
## %bb.1:
	movq	(%rdi), %r13
	movq	8(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 8(%r13,%r12,2)
	movl	$0, %edx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_GPIOF_INIT_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_GPIOF_DIR_OUT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	(%r13,%r12,2), %esi
	leaq	_s5c73m3_configure_gpios.gpio_names(%rip), %rax
	movq	(%r12,%rax), %rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_devm_gpio_request_one
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movq	_GPIO_NUM@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$8, %r12
	cmpq	%rax, %r14
	jl	LBB0_2
LBB0_7:
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_8:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_v4l2_err
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__const
	.p2align	4                               ## @s5c73m3_configure_gpios.gpio_names
_s5c73m3_configure_gpios.gpio_names:
	.quad	L_.str
	.quad	L_.str.1

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"S5C73M3_STBY"

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

	.comm	_GPIO_NUM,4,2                   ## @GPIO_NUM
	.comm	_GPIOF_DIR_OUT,4,2              ## @GPIOF_DIR_OUT
	.comm	_GPIOF_INIT_HIGH,4,2            ## @GPIOF_INIT_HIGH
L_.str.2:                               ## @.str.2
	.asciz	"failed to request gpio %s\n"

	.no_dead_strip	_s5c73m3_configure_gpios
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5c73m3_configure_gpios
_s5c73m3_configure_gpios:               ; @s5c73m3_configure_gpios
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, _GPIO_NUM@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GPIO_NUM@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x23, #0
	ldp	x8, x19, [x0]
	add	x24, x8, #8
Lloh2:
	adrp	x25, _GPIOF_DIR_OUT@GOTPAGE
Lloh3:
	ldr	x25, [x25, _GPIOF_DIR_OUT@GOTPAGEOFF]
Lloh4:
	adrp	x26, _GPIOF_INIT_HIGH@GOTPAGE
Lloh5:
	ldr	x26, [x26, _GPIOF_INIT_HIGH@GOTPAGEOFF]
Lloh6:
	adrp	x27, _s5c73m3_configure_gpios.gpio_names@PAGE
Lloh7:
	add	x27, x27, _s5c73m3_configure_gpios.gpio_names@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25]
	ldr	x9, [x24]
	ldr	w10, [x26]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w2, w9, w8
	ldur	w1, [x24, #-8]
	ldr	x21, [x27, x23, lsl #3]
	mov	x0, x19
	mov	x3, x21
	bl	_devm_gpio_request_one
	cbnz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x22]
	add	x24, x24, #16
	cmp	x23, x8
	b.lt	LBB0_2
LBB0_4:
	mov	w20, #0
	b	LBB0_6
LBB0_5:
	mov	x20, x0
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_v4l2_err
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @s5c73m3_configure_gpios.gpio_names
_s5c73m3_configure_gpios.gpio_names:
	.quad	l_.str
	.quad	l_.str.1

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"S5C73M3_STBY"

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

	.comm	_GPIO_NUM,4,2                   ; @GPIO_NUM
	.comm	_GPIOF_DIR_OUT,4,2              ; @GPIOF_DIR_OUT
	.comm	_GPIOF_INIT_HIGH,4,2            ; @GPIOF_INIT_HIGH
l_.str.2:                               ; @.str.2
	.asciz	"failed to request gpio %s\n"

	.no_dead_strip	_s5c73m3_configure_gpios
.subsections_via_symbols
