	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sunxi_pmx_free
_sunxi_pmx_free:                        ## @sunxi_pmx_free
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %rcx
	movq	_PINS_PER_BANK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%edi
	movl	%eax, %esi
	movq	(%rcx), %r14
	movq	8(%rcx), %rax
	movl	(%rax), %eax
	xorl	%edx, %edx
	divl	%edi
	subl	%eax, %esi
	movzwl	%si, %ebx
	shlq	$4, %rbx
	leaq	(%r14,%rbx), %rdi
	addq	$8, %rdi
	callq	_refcount_dec_and_test
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	(%r14,%rbx), %rdi
	callq	_regulator_disable
	movq	(%r14,%rbx), %rdi
	callq	_regulator_put
	movq	$0, (%r14,%rbx)
LBB0_2:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PINS_PER_BANK,4,2              ## @PINS_PER_BANK
	.no_dead_strip	_sunxi_pmx_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sunxi_pmx_free
_sunxi_pmx_free:                        ; @sunxi_pmx_free
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_pinctrl_dev_get_drvdata
Lloh0:
	adrp	x8, _PINS_PER_BANK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PINS_PER_BANK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	udiv	w9, w19, w8
	ldp	x19, x10, [x0]
	ldr	w10, [x10]
	udiv	w8, w10, w8
	sub	w8, w9, w8
	and	w20, w8, #0xffff
	add	x8, x19, w20, uxtw #4
	add	x0, x8, #8
	bl	_refcount_dec_and_test
	cbz	w0, LBB0_2
; %bb.1:
	lsl	x20, x20, #4
	ldr	x0, [x19, x20]
	bl	_regulator_disable
	ldr	x0, [x19, x20]
	bl	_regulator_put
	str	xzr, [x19, x20]
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PINS_PER_BANK,4,2              ; @PINS_PER_BANK
	.no_dead_strip	_sunxi_pmx_free
.subsections_via_symbols
