	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_u300_gpio_config_get           ## -- Begin function u300_gpio_config_get
	.p2align	4, 0x90
_u300_gpio_config_get:                  ## @u300_gpio_config_get
	.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, %ebx
	callq	_gpiochip_get_data
	movl	(%r14), %r13d
	movq	_per@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_U300_PIN_REG
	movl	%eax, %edi
	callq	_readl
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_U300_PIN_BIT
	movl	%eax, %r15d
	movq	_pcr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_U300_PIN_REG
	movl	%eax, %edi
	callq	_readl
	movq	_U300_GPIO_PXPCR_PIN_MODE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	addl	%ebx, %ebx
	andb	$14, %bl
	movl	%ebx, %ecx
	shll	%cl, %edx
	andl	%eax, %edx
	shrl	%cl, %edx
	addl	$-128, %r13d
	cmpl	$4, %r13d
	ja	LBB0_10
## %bb.1:
	andl	%r12d, %r15d
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r13,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_6:
	movq	$0, (%r14)
	movq	_U300_GPIO_PXPCR_PIN_MODE_OUTPUT_PUSH_PULL@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_10:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_9:
	movq	$0, (%r14)
	movq	_U300_GPIO_PXPCR_PIN_MODE_OUTPUT_OPEN_SOURCE@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_8:
	movq	$0, (%r14)
	movq	_U300_GPIO_PXPCR_PIN_MODE_OUTPUT_OPEN_DRAIN@GOTPCREL(%rip), %rcx
LBB0_7:
	xorl	%eax, %eax
	cmpl	(%rcx), %edx
	jne	LBB0_3
	jmp	LBB0_12
LBB0_4:
	movq	$0, (%r14)
	testl	%r15d, %r15d
	jne	LBB0_3
## %bb.5:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_2:
	xorl	%eax, %eax
	movq	$0, (%r14)
	testl	%r15d, %r15d
	jne	LBB0_12
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_11:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_4
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_per,4,2                        ## @per
	.comm	_pcr,4,2                        ## @pcr
	.comm	_U300_GPIO_PXPCR_PIN_MODE_MASK,4,2 ## @U300_GPIO_PXPCR_PIN_MODE_MASK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_U300_GPIO_PXPCR_PIN_MODE_OUTPUT_PUSH_PULL,4,2 ## @U300_GPIO_PXPCR_PIN_MODE_OUTPUT_PUSH_PULL
	.comm	_U300_GPIO_PXPCR_PIN_MODE_OUTPUT_OPEN_DRAIN,4,2 ## @U300_GPIO_PXPCR_PIN_MODE_OUTPUT_OPEN_DRAIN
	.comm	_U300_GPIO_PXPCR_PIN_MODE_OUTPUT_OPEN_SOURCE,4,2 ## @U300_GPIO_PXPCR_PIN_MODE_OUTPUT_OPEN_SOURCE
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_u300_gpio_config_get           ; -- Begin function u300_gpio_config_get
	.p2align	2
_u300_gpio_config_get:                  ; @u300_gpio_config_get
	.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	x19, x2
	mov	x20, x1
	bl	_gpiochip_get_data
	ldr	w23, [x19]
Lloh0:
	adrp	x8, _per@GOTPAGE
Lloh1:
	ldr	x8, [x8, _per@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_U300_PIN_REG
	bl	_readl
	mov	x21, x0
	mov	x0, x20
	bl	_U300_PIN_BIT
	mov	x22, x0
Lloh3:
	adrp	x8, _pcr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pcr@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_U300_PIN_REG
	bl	_readl
	sub	w10, w23, #128
	cmp	w10, #4
	b.hi	LBB0_3
; %bb.1:
	and	w9, w22, w21
Lloh6:
	adrp	x8, _U300_GPIO_PXPCR_PIN_MODE_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _U300_GPIO_PXPCR_PIN_MODE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ubfiz	w11, w20, #1, #3
	lsl	w8, w8, w11
	and	w8, w8, w0
	lsr	w8, w8, w11
Lloh9:
	adrp	x11, lJTI0_0@PAGE
Lloh10:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_2
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_2:
	str	xzr, [x19]
Lloh11:
	adrp	x9, _U300_GPIO_PXPCR_PIN_MODE_OUTPUT_PUSH_PULL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _U300_GPIO_PXPCR_PIN_MODE_OUTPUT_PUSH_PULL@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
Lloh13:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
	b	LBB0_10
LBB0_4:
	str	xzr, [x19]
Lloh15:
	adrp	x9, _U300_GPIO_PXPCR_PIN_MODE_OUTPUT_OPEN_SOURCE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _U300_GPIO_PXPCR_PIN_MODE_OUTPUT_OPEN_SOURCE@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	str	xzr, [x19]
Lloh17:
	adrp	x9, _U300_GPIO_PXPCR_PIN_MODE_OUTPUT_OPEN_DRAIN@GOTPAGE
Lloh18:
	ldr	x9, [x9, _U300_GPIO_PXPCR_PIN_MODE_OUTPUT_OPEN_DRAIN@GOTPAGEOFF]
LBB0_6:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_9
LBB0_7:
	mov	w0, #0
	b	LBB0_11
LBB0_8:
	str	xzr, [x19]
	cbz	w9, LBB0_7
LBB0_9:
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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
LBB0_12:
	str	xzr, [x19]
	cbnz	w9, LBB0_7
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
                                        ; -- End function
	.comm	_per,4,2                        ; @per
	.comm	_pcr,4,2                        ; @pcr
	.comm	_U300_GPIO_PXPCR_PIN_MODE_MASK,4,2 ; @U300_GPIO_PXPCR_PIN_MODE_MASK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_U300_GPIO_PXPCR_PIN_MODE_OUTPUT_PUSH_PULL,4,2 ; @U300_GPIO_PXPCR_PIN_MODE_OUTPUT_PUSH_PULL
	.comm	_U300_GPIO_PXPCR_PIN_MODE_OUTPUT_OPEN_DRAIN,4,2 ; @U300_GPIO_PXPCR_PIN_MODE_OUTPUT_OPEN_DRAIN
	.comm	_U300_GPIO_PXPCR_PIN_MODE_OUTPUT_OPEN_SOURCE,4,2 ; @U300_GPIO_PXPCR_PIN_MODE_OUTPUT_OPEN_SOURCE
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
.subsections_via_symbols
