	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function oxnas_ox820_pinconf_get
_oxnas_ox820_pinconf_get:               ## @oxnas_ox820_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	$24, %rsp
	.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, %r15d
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r12
	movq	%rax, %rdi
	movl	%r15d, %esi
	callq	_pctl_to_bank
	movq	%rax, %rbx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rdi
	callq	_pinconf_to_config_param
	movl	%eax, %r14d
	movq	8(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_PINMUX_820_BANK_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r15d, %edi
	subq	(%rbx), %rdi
	callq	_BIT
	cmpl	$128, %r14d
	jne	LBB0_3
## %bb.1:
	movl	%eax, %r15d
	xorl	%eax, %eax
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	cmovel	%eax, %r13d
	movl	(%r12), %edi
	movq	_PINMUX_820_PULLUP_CTRL@GOTPCREL(%rip), %rax
	addl	(%rax), %r13d
	leaq	-44(%rbp), %rdx
	movl	%r13d, %esi
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	xorl	%esi, %esi
	andl	-44(%rbp), %r15d
	setne	%sil
	movl	%esi, -44(%rbp)
	movl	$128, %edi
	callq	_pinconf_to_config_packed
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_3:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PINMUX_820_BANK_OFFSET,4,2     ## @PINMUX_820_BANK_OFFSET
	.comm	_PINMUX_820_PULLUP_CTRL,4,2     ## @PINMUX_820_PULLUP_CTRL
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.no_dead_strip	_oxnas_ox820_pinconf_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function oxnas_ox820_pinconf_get
_oxnas_ox820_pinconf_get:               ; @oxnas_ox820_pinconf_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x1
	bl	_pinctrl_dev_get_drvdata
	mov	x20, x0
	mov	x1, x21
	bl	_pctl_to_bank
	mov	x22, x0
	ldr	x0, [x19]
	bl	_pinconf_to_config_param
	mov	x23, x0
Lloh0:
	adrp	x8, _PINMUX_820_BANK_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PINMUX_820_BANK_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	mov	w8, w21
	ldp	x9, x25, [x22]
	sub	x0, x8, x9
	bl	_BIT
	cmp	w23, #128
	b.ne	LBB0_3
; %bb.1:
	mov	x21, x0
	cmp	x25, #0
	csel	w8, wzr, w24, eq
	ldr	w0, [x20]
Lloh3:
	adrp	x9, _PINMUX_820_PULLUP_CTRL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PINMUX_820_PULLUP_CTRL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	w1, w9, w8
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w8, [sp, #12]
	tst	w8, w21
	cset	w1, ne
	str	w1, [sp, #12]
	mov	w0, #128
	bl	_pinconf_to_config_packed
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PINMUX_820_BANK_OFFSET,4,2     ; @PINMUX_820_BANK_OFFSET
	.comm	_PINMUX_820_PULLUP_CTRL,4,2     ; @PINMUX_820_PULLUP_CTRL
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.no_dead_strip	_oxnas_ox820_pinconf_get
.subsections_via_symbols
