	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function npcm7xx_config_get
_npcm7xx_config_get:                    ## @npcm7xx_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %rdi
	callq	_pinconf_to_config_param
	movl	%eax, %r12d
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rbx
	movq	_NPCM7XX_GPIO_PER_BANK@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	(%rcx)
	movl	%eax, %r14d
	shlq	$4, %r14
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	8(%rbx,%r14)
	movl	%edx, %edi
	callq	_BIT
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	leal	-128(%r12), %edx
	cmpl	$9, %edx
	ja	LBB0_19
## %bb.1:
	addq	%r14, %rbx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rdx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_2:
	movq	%rax, %r15
	movq	_NPCM7XX_GP_N_PU@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_ioread32
	movq	%rax, %r14
	movq	_NPCM7XX_GP_N_PD@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_ioread32
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$135, %ecx
	je	LBB0_6
## %bb.3:
	cmpl	$136, %ecx
	je	LBB0_10
## %bb.4:
	cmpl	$137, %ecx
	jne	LBB0_23
## %bb.5:
	orq	%rax, %r14
	xorl	%ebx, %ebx
	testq	%r15, %r14
	jmp	LBB0_21
LBB0_8:
	movq	%rax, %r15
	movq	_NPCM7XX_GP_N_IEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_ioread32
	movq	%rax, %r14
	movq	_NPCM7XX_GP_N_OE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_ioread32
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$129, %ecx
	je	LBB0_10
## %bb.9:
	cmpl	$130, %ecx
	jne	LBB0_23
LBB0_6:
	testq	%r15, %r14
	setne	%cl
	testq	%r15, %rax
	sete	%al
	jmp	LBB0_7
LBB0_10:
	testq	%r15, %r14
	sete	%cl
	testq	%r15, %rax
	setne	%al
LBB0_7:
	andb	%cl, %al
	movzbl	%al, %ebx
	jmp	LBB0_22
LBB0_19:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_16:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_npcm7xx_get_slew_rate
	testl	%eax, %eax
	js	LBB0_17
## %bb.18:
	movl	%eax, %ebx
	movl	$128, %edi
	movl	%eax, %esi
	callq	_pinconf_to_config_packed
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	jmp	LBB0_22
LBB0_13:
	movq	_NPCM7XX_GP_N_DBNC@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_14:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_npcm7xx_get_drive_strength
	testl	%eax, %eax
	je	LBB0_23
## %bb.15:
	movl	$132, %edi
	movl	%eax, %esi
	callq	_pinconf_to_config_packed
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%r15d, %r15d
	jmp	LBB0_25
LBB0_20:
	movq	_NPCM7XX_GP_N_OTYP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	addq	(%rbx), %rdi
	movq	%rax, %r14
	callq	_ioread32
	xorl	%ebx, %ebx
	testq	%r14, %rax
LBB0_21:
	sete	%bl
	jmp	LBB0_22
LBB0_11:
	movq	_NPCM7XX_GP_N_OTYP@GOTPCREL(%rip), %rcx
LBB0_12:
	movq	(%rcx), %rdi
	addq	(%rbx), %rdi
	movq	%rax, %rbx
	callq	_ioread32
	andl	%eax, %ebx
                                        ## kill: def $ebx killed $ebx killed $rbx
LBB0_22:
	xorl	%r15d, %r15d
	testl	%ebx, %ebx
	jne	LBB0_25
LBB0_23:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
LBB0_24:
	subl	(%rax), %r15d
LBB0_25:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	xorl	%r15d, %r15d
	jmp	LBB0_25
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_16
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_20
	.long	L0_0_set_11
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_NPCM7XX_GPIO_PER_BANK,4,2      ## @NPCM7XX_GPIO_PER_BANK
	.comm	_NPCM7XX_GP_N_PU,8,3            ## @NPCM7XX_GP_N_PU
	.comm	_NPCM7XX_GP_N_PD,8,3            ## @NPCM7XX_GP_N_PD
	.comm	_NPCM7XX_GP_N_IEM,8,3           ## @NPCM7XX_GP_N_IEM
	.comm	_NPCM7XX_GP_N_OE,8,3            ## @NPCM7XX_GP_N_OE
	.comm	_NPCM7XX_GP_N_OTYP,8,3          ## @NPCM7XX_GP_N_OTYP
	.comm	_NPCM7XX_GP_N_DBNC,8,3          ## @NPCM7XX_GP_N_DBNC
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_npcm7xx_config_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function npcm7xx_config_get
_npcm7xx_config_get:                    ; @npcm7xx_config_get
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x2
	mov	x23, x1
	mov	x24, x0
	ldr	x0, [x2]
	bl	_pinconf_to_config_param
	mov	x20, x0
	mov	x0, x24
	bl	_pinctrl_dev_get_drvdata
	mov	x25, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _NPCM7XX_GPIO_PER_BANK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NPCM7XX_GPIO_PER_BANK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	udiv	w9, w23, w9
	add	x22, x8, w9, uxtw #4
	ldr	w8, [x22, #8]
	udiv	w9, w23, w8
	msub	w0, w9, w8, w23
	bl	_BIT
	sub	w8, w20, #128
	cmp	w8, #9
	b.hi	LBB0_10
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	x8, [x22]
Lloh5:
	adrp	x9, _NPCM7XX_GP_N_PU@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NPCM7XX_GP_N_PU@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_ioread32
	and	x21, x0, x19
	ldr	x8, [x22]
Lloh8:
	adrp	x9, _NPCM7XX_GP_N_PD@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NPCM7XX_GP_N_PD@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_ioread32
	and	x8, x0, x19
	cmp	w20, #135
	b.eq	LBB0_8
; %bb.3:
	cmp	w20, #136
	b.eq	LBB0_9
; %bb.4:
	cmp	w20, #137
	b.ne	LBB0_17
; %bb.5:
	orr	x8, x21, x8
	cmp	x8, #0
	cset	w19, eq
	cbnz	w19, LBB0_21
	b	LBB0_17
LBB0_6:
	ldr	x8, [x22]
Lloh11:
	adrp	x9, _NPCM7XX_GP_N_IEM@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NPCM7XX_GP_N_IEM@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_ioread32
	and	x21, x0, x19
	ldr	x8, [x22]
Lloh14:
	adrp	x9, _NPCM7XX_GP_N_OE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _NPCM7XX_GP_N_OE@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_ioread32
	and	x8, x0, x19
	cmp	w20, #129
	b.eq	LBB0_9
; %bb.7:
	cmp	w20, #130
	b.ne	LBB0_17
LBB0_8:
	cmp	x21, #0
	ccmp	x8, #0, #0, ne
	cset	w19, eq
	cbnz	w19, LBB0_21
	b	LBB0_17
LBB0_9:
	cmp	x21, #0
	ccmp	x8, #0, #4, eq
	cset	w19, ne
	cbnz	w19, LBB0_21
	b	LBB0_17
LBB0_10:
Lloh17:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
	b	LBB0_18
LBB0_11:
	ldr	w1, [x25]
	mov	x0, x22
	mov	x2, x23
	bl	_npcm7xx_get_slew_rate
	tbnz	w0, #31, LBB0_21
; %bb.12:
	mov	x19, x0
	mov	w0, #128
	mov	x1, x19
	bl	_pinconf_to_config_packed
	str	x0, [x21]
	cbnz	w19, LBB0_21
	b	LBB0_17
LBB0_13:
	ldr	x8, [x22]
Lloh19:
	adrp	x9, _NPCM7XX_GP_N_DBNC@GOTPAGE
Lloh20:
	ldr	x9, [x9, _NPCM7XX_GP_N_DBNC@GOTPAGEOFF]
	b	LBB0_20
LBB0_14:
	mov	x0, x24
	mov	x1, x23
	bl	_npcm7xx_get_drive_strength
	cbz	w0, LBB0_17
; %bb.15:
	mov	x1, x0
	mov	w0, #132
	bl	_pinconf_to_config_packed
	mov	x8, x0
	mov	w0, #0
	str	x8, [x21]
	b	LBB0_22
LBB0_16:
	ldr	x8, [x22]
Lloh21:
	adrp	x9, _NPCM7XX_GP_N_OTYP@GOTPAGE
Lloh22:
	ldr	x9, [x9, _NPCM7XX_GP_N_OTYP@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_ioread32
	tst	x0, x19
	cset	w19, eq
	cbnz	w19, LBB0_21
LBB0_17:
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_22
LBB0_19:
	ldr	x8, [x22]
Lloh26:
	adrp	x9, _NPCM7XX_GP_N_OTYP@GOTPAGE
Lloh27:
	ldr	x9, [x9, _NPCM7XX_GP_N_OTYP@GOTPAGEOFF]
LBB0_20:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_ioread32
	and	w19, w0, w19
	cbz	w19, LBB0_17
LBB0_21:
	mov	w0, #0
LBB0_22:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
	.byte	(LBB0_19-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_NPCM7XX_GPIO_PER_BANK,4,2      ; @NPCM7XX_GPIO_PER_BANK
	.comm	_NPCM7XX_GP_N_PU,8,3            ; @NPCM7XX_GP_N_PU
	.comm	_NPCM7XX_GP_N_PD,8,3            ; @NPCM7XX_GP_N_PD
	.comm	_NPCM7XX_GP_N_IEM,8,3           ; @NPCM7XX_GP_N_IEM
	.comm	_NPCM7XX_GP_N_OE,8,3            ; @NPCM7XX_GP_N_OE
	.comm	_NPCM7XX_GP_N_OTYP,8,3          ; @NPCM7XX_GP_N_OTYP
	.comm	_NPCM7XX_GP_N_DBNC,8,3          ; @NPCM7XX_GP_N_DBNC
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_npcm7xx_config_get
.subsections_via_symbols
