	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5k4ecgx_config_gpio
_s5k4ecgx_config_gpio:                  ## @s5k4ecgx_config_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r12d
	movl	%edi, %r15d
	movq	_GPIOF_OUT_INIT_HIGH@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_GPIOF_OUT_INIT_LOW@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	callq	_gpio_is_valid
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	testl	%r12d, %r12d
	cmoveq	%r13, %rbx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_gpio_request_one
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	xorl	%ebx, %ebx
	movl	%r15d, %edi
	xorl	%esi, %esi
	callq	_gpio_export
	jmp	LBB0_4
LBB0_1:
	xorl	%ebx, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIOF_OUT_INIT_HIGH,8,3        ## @GPIOF_OUT_INIT_HIGH
	.comm	_GPIOF_OUT_INIT_LOW,8,3         ## @GPIOF_OUT_INIT_LOW
	.no_dead_strip	_s5k4ecgx_config_gpio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5k4ecgx_config_gpio
_s5k4ecgx_config_gpio:                  ; @s5k4ecgx_config_gpio
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GPIOF_OUT_INIT_HIGH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPIOF_OUT_INIT_HIGH@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
Lloh3:
	adrp	x8, _GPIOF_OUT_INIT_LOW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GPIOF_OUT_INIT_LOW@GOTPAGEOFF]
Lloh5:
	ldr	x23, [x8]
	bl	_gpio_is_valid
	cbz	w0, LBB0_3
; %bb.1:
	cmp	w21, #0
	csel	x1, x23, x22, eq
	mov	x0, x19
	mov	x2, x20
	bl	_gpio_request_one
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	bl	_gpio_export
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIOF_OUT_INIT_HIGH,8,3        ; @GPIOF_OUT_INIT_HIGH
	.comm	_GPIOF_OUT_INIT_LOW,8,3         ; @GPIOF_OUT_INIT_LOW
	.no_dead_strip	_s5k4ecgx_config_gpio
.subsections_via_symbols
