	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function palmas_pinconf_get
_palmas_pinconf_get:                    ## @palmas_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
	subq	$40, %rsp
	.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, %r12
	movq	(%r15), %rdi
	callq	_pinconf_to_config_param
                                        ## kill: def $eax killed $eax def $rax
	movl	(%r12), %edi
	testl	%edi, %edi
	jle	LBB0_1
## %bb.5:
	movq	24(%r12), %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx), %rsi
	cmpl	%ebx, (%rsi)
	je	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rcx
	addq	$24, %rdx
	cmpq	%rcx, %rdi
	jne	LBB0_6
	jmp	LBB0_8
LBB0_1:
	xorl	%ecx, %ecx
LBB0_2:
	cmpl	%edi, %ecx
	jne	LBB0_3
LBB0_8:
	movl	16(%r12), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movl	%ebx, %edx
	jmp	LBB0_15
LBB0_3:
	movq	8(%r12), %rsi
	movq	24(%r12), %r8
	movl	%ecx, %ecx
	leaq	(%rcx,%rcx,2), %rbx
	movq	16(%r8,%rbx,8), %rdx
	movq	(%rsi,%rcx,8), %rcx
	movq	(%rdx,%rcx,8), %r14
	testq	%r14, %r14
	je	LBB0_4
## %bb.9:
	leal	-129(%rax), %ecx
	cmpl	$3, %ecx
	jae	LBB0_10
## %bb.17:
	movq	8(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.19:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %esi
	movl	4(%rcx), %ebx
	movl	20(%r12), %edi
	leaq	-44(%rbp), %rcx
	movl	%ebx, %edx
	callq	_palmas_read
	testl	%eax, %eax
	js	LBB0_20
## %bb.21:
	movq	8(%r14), %rcx
	movl	8(%rcx), %eax
	movl	12(%rcx), %edx
	andl	-44(%rbp), %eax
	testl	%edx, %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	js	LBB0_24
## %bb.22:
	cmpl	%eax, %edx
	jne	LBB0_24
## %bb.23:
	movl	$1, %esi
	cmpl	$131, %edi
	je	LBB0_37
LBB0_24:
	movl	16(%rcx), %edx
	testl	%edx, %edx
	js	LBB0_27
## %bb.25:
	cmpl	%eax, %edx
	jne	LBB0_27
## %bb.26:
	movl	$1, %esi
	cmpl	$129, %edi
	je	LBB0_37
LBB0_27:
	movl	20(%rcx), %ecx
	testl	%ecx, %ecx
	js	LBB0_28
## %bb.36:
	xorl	%eax, %ecx
	movl	%edi, %eax
	xorl	$130, %eax
	xorl	%esi, %esi
	orl	%ecx, %eax
	sete	%sil
	jmp	LBB0_37
LBB0_4:
	movl	16(%r12), %edi
	movl	8(%r8,%rbx,8), %edx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_14
LBB0_10:
	cmpl	$128, %eax
	jne	LBB0_35
## %bb.11:
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.29:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %esi
	movl	4(%rcx), %ebx
	movl	20(%r12), %edi
	leaq	-44(%rbp), %rcx
	movl	%ebx, %edx
	callq	_palmas_read
	testl	%eax, %eax
	js	LBB0_20
## %bb.30:
	movq	(%r14), %rcx
	movl	8(%rcx), %eax
	movl	12(%rcx), %edx
	andl	-44(%rbp), %eax
	testl	%edx, %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	js	LBB0_32
## %bb.31:
	xorl	%esi, %esi
	cmpl	%eax, %edx
	je	LBB0_37
LBB0_32:
	movl	16(%rcx), %ecx
	testl	%ecx, %ecx
	js	LBB0_34
## %bb.33:
	movl	$1, %esi
	cmpl	%eax, %ecx
	je	LBB0_37
LBB0_34:
	movl	16(%r12), %edi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	8(%rax,%rcx,8), %edx
	jmp	LBB0_13
LBB0_18:
	movl	16(%r12), %edi
	movl	8(%r8,%rbx,8), %edx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_14
LBB0_35:
	movl	16(%r12), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_16
LBB0_20:
	movl	%eax, %r13d
	movl	16(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_38
LBB0_12:
	movl	16(%r12), %edi
	movl	8(%r8,%rbx,8), %edx
LBB0_13:
	leaq	L_.str.4(%rip), %rsi
LBB0_14:
	xorl	%r13d, %r13d
LBB0_15:
	xorl	%eax, %eax
	callq	_dev_err
LBB0_16:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
LBB0_38:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	xorl	%esi, %esi
LBB0_37:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_pinconf_to_config_packed
	movq	%rax, (%r15)
	xorl	%r13d, %r13d
	jmp	LBB0_38
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Pinconf is not supported for pin-id %d\n"

	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
L_.str.1:                               ## @.str.1
	.asciz	"Pinconf is not supported for pin %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"PULL control not supported for pin %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"Reg 0x%02x read failed: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"OD control not supported for pin %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"Properties not supported\n"

	.no_dead_strip	_palmas_pinconf_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function palmas_pinconf_get
_palmas_pinconf_get:                    ; @palmas_pinconf_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x2
	mov	x22, x1
	bl	_pinctrl_dev_get_drvdata
	mov	x21, x0
	ldr	x0, [x19]
	bl	_pinconf_to_config_param
	mov	x20, x0
	ldr	w9, [x21]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x8, #0
	ldr	x10, [x21, #24]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	ldr	w11, [x11]
	cmp	w11, w22
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #1
	add	x10, x10, #24
	cmp	x9, x8
	b.ne	LBB0_2
	b	LBB0_6
LBB0_4:
	mov	w8, #0
LBB0_5:
	cmp	w8, w9
	b.ne	LBB0_9
LBB0_6:
	ldr	w0, [x21, #16]
	str	x22, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
LBB0_7:
	bl	_dev_err
Lloh2:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
	ldr	x24, [x21, #24]
	mov	w25, w8
	mov	w9, #24
	umaddl	x9, w8, w9, x24
	ldr	x9, [x9, #16]
	ldr	x10, [x21, #8]
	ldr	x8, [x10, w8, uxtw #3]
	ldr	x26, [x9, x8, lsl #3]
	cbz	x26, LBB0_21
; %bb.10:
	sub	w8, w20, #129
	cmp	w8, #3
	b.hs	LBB0_22
; %bb.11:
	ldr	x8, [x26, #8]
	cbz	x8, LBB0_28
; %bb.12:
	ldp	w1, w23, [x8]
	ldr	w0, [x21, #20]
	add	x3, sp, #28
	mov	x2, x23
	bl	_palmas_read
	tbnz	w0, #31, LBB0_30
; %bb.13:
	ldr	w9, [sp, #28]
	ldr	x8, [x26, #8]
	ldp	w11, w10, [x8, #8]
	and	w9, w11, w9
	tbnz	w10, #31, LBB0_16
; %bb.14:
	cmp	w10, w9
	b.ne	LBB0_16
; %bb.15:
	cmp	w20, #131
	b.eq	LBB0_34
LBB0_16:
	ldr	w10, [x8, #16]
	tbnz	w10, #31, LBB0_19
; %bb.17:
	cmp	w10, w9
	b.ne	LBB0_19
; %bb.18:
	cmp	w20, #129
	b.eq	LBB0_34
LBB0_19:
	ldr	w8, [x8, #20]
	tbnz	w8, #31, LBB0_27
; %bb.20:
	cmp	w8, w9
	mov	w8, #130
	ccmp	w20, w8, #0, eq
	cset	w1, eq
	b	LBB0_35
LBB0_21:
	ldr	w0, [x21, #16]
	mov	w8, #24
	madd	x8, x25, x8, x24
	ldr	w8, [x8, #8]
	str	x8, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_22:
	cmp	w20, #128
	b.ne	LBB0_29
; %bb.23:
	ldr	x8, [x26]
	cbz	x8, LBB0_36
; %bb.24:
	ldp	w1, w22, [x8]
	ldr	w0, [x21, #20]
	add	x3, sp, #28
	mov	x2, x22
	bl	_palmas_read
	tbnz	w0, #31, LBB0_31
; %bb.25:
	ldr	w8, [sp, #28]
	ldr	x9, [x26]
	ldp	w11, w10, [x9, #8]
	and	w8, w11, w8
	tbnz	w10, #31, LBB0_32
; %bb.26:
	cmp	w10, w8
	b.ne	LBB0_32
LBB0_27:
	mov	w1, #0
	b	LBB0_35
LBB0_28:
	ldr	w0, [x21, #16]
	mov	w8, #24
	madd	x8, x25, x8, x24
	ldr	w8, [x8, #8]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_29:
	ldr	w0, [x21, #16]
Lloh9:
	adrp	x1, l_.str.5@PAGE
Lloh10:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_7
LBB0_30:
	mov	x22, x0
	ldr	w0, [x21, #16]
	stp	x23, x22, [sp]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	b	LBB0_8
LBB0_31:
	mov	x23, x0
	ldr	w0, [x21, #16]
	stp	x22, x23, [sp]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	mov	x22, x23
	b	LBB0_8
LBB0_32:
	ldr	w9, [x9, #16]
	tbnz	w9, #31, LBB0_36
; %bb.33:
	cmp	w9, w8
	b.ne	LBB0_36
LBB0_34:
	mov	w1, #1
LBB0_35:
	mov	x0, x20
	bl	_pinconf_to_config_packed
	mov	w22, #0
	str	x0, [x19]
	b	LBB0_8
LBB0_36:
	ldr	w0, [x21, #16]
	mov	w8, #24
	madd	x8, x25, x8, x24
	ldr	w8, [x8, #8]
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Pinconf is not supported for pin-id %d\n"

	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
l_.str.1:                               ; @.str.1
	.asciz	"Pinconf is not supported for pin %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"PULL control not supported for pin %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"Reg 0x%02x read failed: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"OD control not supported for pin %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"Properties not supported\n"

	.no_dead_strip	_palmas_pinconf_get
.subsections_via_symbols
