	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vx855gpio_set_config
_vx855gpio_set_config:                  ## @vx855gpio_set_config
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rdi
	movl	%esi, %ebx
	callq	_pinconf_to_config_param
	movl	%eax, %ecx
	movq	_NR_VX855_GPI@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jbe	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_2:
	movq	_NR_VX855_GPInO@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jbe	LBB0_4
## %bb.3:
	movq	_PIN_CONFIG_DRIVE_PUSH_PULL@GOTPCREL(%rip), %rdx
	jmp	LBB0_5
LBB0_4:
	movq	_PIN_CONFIG_DRIVE_OPEN_DRAIN@GOTPCREL(%rip), %rdx
LBB0_5:
	xorl	%eax, %eax
	cmpl	(%rdx), %ecx
	je	LBB0_8
## %bb.6:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
LBB0_7:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NR_VX855_GPI,4,2               ## @NR_VX855_GPI
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NR_VX855_GPInO,4,2             ## @NR_VX855_GPInO
	.comm	_PIN_CONFIG_DRIVE_PUSH_PULL,4,2 ## @PIN_CONFIG_DRIVE_PUSH_PULL
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_PIN_CONFIG_DRIVE_OPEN_DRAIN,4,2 ## @PIN_CONFIG_DRIVE_OPEN_DRAIN
	.no_dead_strip	_vx855gpio_set_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vx855gpio_set_config
_vx855gpio_set_config:                  ; @vx855gpio_set_config
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x0, x2
	mov	x19, x1
	bl	_pinconf_to_config_param
Lloh0:
	adrp	x8, _NR_VX855_GPI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NR_VX855_GPI@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ls	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
Lloh5:
	adrp	x8, _NR_VX855_GPInO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NR_VX855_GPInO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ls	LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _PIN_CONFIG_DRIVE_PUSH_PULL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PIN_CONFIG_DRIVE_PUSH_PULL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x8, _PIN_CONFIG_DRIVE_OPEN_DRAIN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PIN_CONFIG_DRIVE_OPEN_DRAIN@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.6:
	mov	w0, #0
	b	LBB0_9
LBB0_7:
Lloh12:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NR_VX855_GPI,4,2               ; @NR_VX855_GPI
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NR_VX855_GPInO,4,2             ; @NR_VX855_GPInO
	.comm	_PIN_CONFIG_DRIVE_PUSH_PULL,4,2 ; @PIN_CONFIG_DRIVE_PUSH_PULL
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_PIN_CONFIG_DRIVE_OPEN_DRAIN,4,2 ; @PIN_CONFIG_DRIVE_OPEN_DRAIN
	.no_dead_strip	_vx855gpio_set_config
.subsections_via_symbols
