	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function oxnas_ox820_pinconf_set
_oxnas_ox820_pinconf_set:               ## @oxnas_ox820_pinconf_set
	.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
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r13d
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	%r13d, %esi
	callq	_pctl_to_bank
	movq	%rax, %r14
	xorl	%ebx, %ebx
	cmpq	$0, 8(%rax)
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	je	LBB0_2
## %bb.1:
	movq	_PINMUX_820_BANK_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_2:
	movl	%r13d, %edi
	subq	(%r14), %rdi
	callq	_BIT
	movq	%rax, %r12
	movl	(%r15), %edi
	movq	(%r14), %rcx
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	movl	%eax, %r14d
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r13,8), %rdi
	callq	_pinconf_to_config_param
	movl	(%r15), %edi
	cmpl	$128, %eax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	4(%r15), %edi
	movq	_PINMUX_820_PULLUP_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	-44(%rbp), %esi                 ## 4-byte Folded Reload
	movq	%r12, %rdx
	movq	%r12, %rcx
	callq	_regmap_write_bits
	incq	%r13
	cmpq	%r13, %r14
	jne	LBB0_4
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting pin %d bank %d mask 0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"   pullup\n"

	.comm	_PINMUX_820_PULLUP_CTRL,4,2     ## @PINMUX_820_PULLUP_CTRL
L_.str.2:                               ## @.str.2
	.asciz	"Property %u not supported\n"

	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.no_dead_strip	_oxnas_ox820_pinconf_set
.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_set
_oxnas_ox820_pinconf_set:               ; @oxnas_ox820_pinconf_set
	.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	x22, x3
	mov	x19, x2
	mov	x23, x1
	bl	_pinctrl_dev_get_drvdata
	mov	x20, x0
	mov	x1, x23
	bl	_pctl_to_bank
	mov	x24, x0
Lloh0:
	adrp	x8, _PINMUX_820_BANK_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PINMUX_820_BANK_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	x10, x9, [x0]
	cmp	x9, #0
	csel	w25, wzr, w8, eq
	mov	w8, w23
	sub	x0, x8, x10
	bl	_BIT
	mov	x21, x0
	ldr	w0, [x20]
	ldr	x8, [x24]
	stp	x8, x21, [sp, #8]
	str	x23, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	cbz	w22, LBB0_4
; %bb.1:
	mov	w23, w22
Lloh5:
	adrp	x24, _PINMUX_820_PULLUP_CTRL@GOTPAGE
Lloh6:
	ldr	x24, [x24, _PINMUX_820_PULLUP_CTRL@GOTPAGEOFF]
Lloh7:
	adrp	x22, l_.str.1@PAGE
Lloh8:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	bl	_pinconf_to_config_param
	mov	x2, x0
	ldr	w0, [x20]
	cmp	w2, #128
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x1, x22
	bl	_dev_dbg
	ldr	w0, [x20, #4]
	ldr	w8, [x24]
	add	w1, w8, w25
	mov	x2, x21
	mov	x3, x21
	bl	_regmap_write_bits
	add	x19, x19, #8
	subs	x23, x23, #1
	b.ne	LBB0_2
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
Lloh11:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PINMUX_820_BANK_OFFSET,4,2     ; @PINMUX_820_BANK_OFFSET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting pin %d bank %d mask 0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"   pullup\n"

	.comm	_PINMUX_820_PULLUP_CTRL,4,2     ; @PINMUX_820_PULLUP_CTRL
l_.str.2:                               ; @.str.2
	.asciz	"Property %u not supported\n"

	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.no_dead_strip	_oxnas_ox820_pinconf_set
.subsections_via_symbols
