	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rzn1_pinconf_get
_rzn1_pinconf_get:                      ## @rzn1_pinconf_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, %r15
	movl	%esi, %ebx
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r13
	movq	(%r15), %rdi
	callq	_pinconf_to_config_param
	movl	%eax, %r14d
	movq	8(%r13), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	cmpl	%ebx, %eax
	jbe	LBB0_1
## %bb.3:
	movq	8(%r13), %rax
	movl	%ebx, %ebx
	shlq	$2, %rbx
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_readl
	movl	%eax, %r12d
	movq	_RZN1_L1_PIN_PULL@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%r12d, %eax
	sarl	%cl, %eax
	leal	-128(%r14), %ecx
	cmpl	$4, %ecx
	ja	LBB0_13
## %bb.4:
	andl	$3, %eax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_14:
	movq	_RZN1_L1_PIN_DRIVE_STRENGTH@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r12d
	andl	$3, %r12d
	leaq	L___const.rzn1_pinconf_get.reg_drive(%rip), %rax
	movl	(%rax,%r12,4), %esi
	jmp	LBB0_15
LBB0_13:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_5:
	movq	_RZN1_L1_PIN_PULL_UP@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_7:
	movq	_RZN1_L1_PIN_PULL_DOWN@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_9:
	movq	_RZN1_L1_FUNC_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	movq	(%r13), %rax
	addq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_readl
	movq	_RZN1_L1_FUNCTION_L2@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r12d
	jne	LBB0_12
## %bb.10:
	testl	%eax, %eax
	jne	LBB0_1
## %bb.11:
	xorl	%esi, %esi
	jmp	LBB0_15
LBB0_8:
	movq	_RZN1_L1_PIN_PULL_NONE@GOTPCREL(%rip), %rcx
LBB0_6:
	xorl	%esi, %esi
	cmpl	(%rcx), %eax
	jne	LBB0_1
LBB0_15:
	movl	%r14d, %edi
	callq	_pinconf_to_config_packed
	movq	%rax, (%r15)
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_12:
	movq	_RZN1_FUNC_HIGHZ@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	cmpl	(%rax), %r12d
	je	LBB0_15
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	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_14, LBB0_14-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_14
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @__const.rzn1_pinconf_get.reg_drive
L___const.rzn1_pinconf_get.reg_drive:
	.long	4                               ## 0x4
	.long	6                               ## 0x6
	.long	8                               ## 0x8
	.long	12                              ## 0xc

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RZN1_L1_FUNC_MASK,4,2          ## @RZN1_L1_FUNC_MASK
	.comm	_RZN1_L1_PIN_PULL,4,2           ## @RZN1_L1_PIN_PULL
	.comm	_RZN1_L1_PIN_DRIVE_STRENGTH,4,2 ## @RZN1_L1_PIN_DRIVE_STRENGTH
	.comm	_RZN1_L1_PIN_PULL_UP,4,2        ## @RZN1_L1_PIN_PULL_UP
	.comm	_RZN1_L1_PIN_PULL_DOWN,4,2      ## @RZN1_L1_PIN_PULL_DOWN
	.comm	_RZN1_L1_PIN_PULL_NONE,4,2      ## @RZN1_L1_PIN_PULL_NONE
	.comm	_RZN1_L1_FUNCTION_L2,4,2        ## @RZN1_L1_FUNCTION_L2
	.comm	_RZN1_FUNC_HIGHZ,4,2            ## @RZN1_FUNC_HIGHZ
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.no_dead_strip	_rzn1_pinconf_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rzn1_pinconf_get
_rzn1_pinconf_get:                      ; @rzn1_pinconf_get
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x21, x1
	bl	_pinctrl_dev_get_drvdata
	mov	x22, x0
	ldr	x0, [x19]
	bl	_pinconf_to_config_param
	mov	x20, x0
	ldr	x8, [x22, #8]
	ldr	x0, [x8]
	bl	_ARRAY_SIZE
	cmp	w0, w21
	b.ls	LBB0_9
; %bb.1:
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
	add	x0, x8, w21, uxtw #2
	bl	_readl
	sub	w9, w20, #128
	cmp	w9, #4
	b.hi	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _RZN1_L1_PIN_PULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RZN1_L1_PIN_PULL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	asr	w8, w0, w8
	and	w8, w8, #0x3
Lloh3:
	adrp	x10, lJTI0_0@PAGE
Lloh4:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_3
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_3:
Lloh5:
	adrp	x8, _RZN1_L1_PIN_DRIVE_STRENGTH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RZN1_L1_PIN_DRIVE_STRENGTH@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	asr	w8, w0, w8
	and	w8, w8, #0x3
Lloh8:
	adrp	x9, l___const.rzn1_pinconf_get.reg_drive@PAGE
Lloh9:
	add	x9, x9, l___const.rzn1_pinconf_get.reg_drive@PAGEOFF
	ldr	w1, [x9, w8, uxtw #2]
	b	LBB0_14
LBB0_4:
Lloh10:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
Lloh12:
	adrp	x9, _RZN1_L1_PIN_PULL_UP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RZN1_L1_PIN_PULL_UP@GOTPAGEOFF]
	b	LBB0_12
LBB0_6:
Lloh14:
	adrp	x9, _RZN1_L1_PIN_PULL_DOWN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RZN1_L1_PIN_PULL_DOWN@GOTPAGEOFF]
	b	LBB0_12
LBB0_7:
Lloh16:
	adrp	x8, _RZN1_L1_FUNC_MASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RZN1_L1_FUNC_MASK@GOTPAGEOFF]
	mov	w9, w21
Lloh18:
	ldr	w8, [x8]
	and	w21, w8, w0
	ldr	x8, [x22]
	ldr	x8, [x8]
	add	x0, x8, x9, lsl #2
	bl	_readl
Lloh19:
	adrp	x8, _RZN1_L1_FUNCTION_L2@GOTPAGE
Lloh20:
	ldr	x8, [x8, _RZN1_L1_FUNCTION_L2@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_16
; %bb.8:
	cbz	w0, LBB0_13
LBB0_9:
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_11:
Lloh24:
	adrp	x9, _RZN1_L1_PIN_PULL_NONE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _RZN1_L1_PIN_PULL_NONE@GOTPAGEOFF]
LBB0_12:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_9
LBB0_13:
	mov	w1, #0
LBB0_14:
	mov	x0, x20
	bl	_pinconf_to_config_packed
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_16:
Lloh26:
	adrp	x8, _RZN1_FUNC_HIGHZ@GOTPAGE
Lloh27:
	ldr	x8, [x8, _RZN1_FUNC_HIGHZ@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_9
	b	LBB0_13
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
                                        ; -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @__const.rzn1_pinconf_get.reg_drive
l___const.rzn1_pinconf_get.reg_drive:
	.long	4                               ; 0x4
	.long	6                               ; 0x6
	.long	8                               ; 0x8
	.long	12                              ; 0xc

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RZN1_L1_FUNC_MASK,4,2          ; @RZN1_L1_FUNC_MASK
	.comm	_RZN1_L1_PIN_PULL,4,2           ; @RZN1_L1_PIN_PULL
	.comm	_RZN1_L1_PIN_DRIVE_STRENGTH,4,2 ; @RZN1_L1_PIN_DRIVE_STRENGTH
	.comm	_RZN1_L1_PIN_PULL_UP,4,2        ; @RZN1_L1_PIN_PULL_UP
	.comm	_RZN1_L1_PIN_PULL_DOWN,4,2      ; @RZN1_L1_PIN_PULL_DOWN
	.comm	_RZN1_L1_PIN_PULL_NONE,4,2      ; @RZN1_L1_PIN_PULL_NONE
	.comm	_RZN1_L1_FUNCTION_L2,4,2        ; @RZN1_L1_FUNCTION_L2
	.comm	_RZN1_FUNC_HIGHZ,4,2            ; @RZN1_FUNC_HIGHZ
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.no_dead_strip	_rzn1_pinconf_get
.subsections_via_symbols
