	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sunxi_pmx_request
_sunxi_pmx_request:                     ## @sunxi_pmx_request
	.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
	movl	%esi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %rbx
	movq	_PINS_PER_BANK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %r12d
	movq	8(%rbx), %r14
	movq	16(%rbx), %rax
	movl	(%rax), %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%r12d, %ecx
	subl	%eax, %ecx
	movzwl	%cx, %r13d
	shlq	$4, %r13
	cmpq	$0, (%r14,%r13)
	je	LBB0_2
## %bb.1:
	leaq	(%r14,%r13), %rdi
	addq	$8, %rdi
	callq	_refcount_inc
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_2:
	leal	97(%r12), %eax
	movsbl	%al, %ecx
	leaq	L_.str(%rip), %rdx
	leaq	-64(%rbp), %rdi
	movl	$16, %esi
	callq	_snprintf
	movl	(%rbx), %edi
	leaq	-64(%rbp), %rsi
	callq	_regulator_get
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %edi
	addb	$65, %r12b
	movsbl	%r12b, %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_PTR_ERR
	jmp	LBB0_8
LBB0_4:
	leaq	(%r14,%r13), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	(%rbx), %edi
	addb	$65, %r12b
	movsbl	%r12b, %edx
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %ebx
	callq	_dev_err
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	callq	_regulator_put
	movl	%ebx, %eax
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_10
## %bb.9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_sunxi_pinctrl_set_io_bias_cfg
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	leaq	(%r14,%r13), %rdi
	addq	$8, %rdi
	movl	$1, %esi
	callq	_refcount_set
	jmp	LBB0_7
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PINS_PER_BANK,4,2              ## @PINS_PER_BANK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vcc-p%c"

L_.str.1:                               ## @.str.1
	.asciz	"Couldn't get bank P%c regulator\n"

L_.str.2:                               ## @.str.2
	.asciz	"Couldn't enable bank P%c regulator\n"

	.no_dead_strip	_sunxi_pmx_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sunxi_pmx_request
_sunxi_pmx_request:                     ; @sunxi_pmx_request
	.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, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_pinctrl_dev_get_drvdata
Lloh3:
	adrp	x8, _PINS_PER_BANK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PINS_PER_BANK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	udiv	w24, w19, w8
	ldp	x25, x9, [x0, #8]
	ldr	w9, [x9]
	udiv	w8, w9, w8
	sub	w8, w24, w8
	and	w26, w8, #0xffff
	add	x23, x25, w26, uxtw #4
	ldr	x8, [x23]
	cbz	x8, LBB0_2
; %bb.1:
	add	x8, x25, x26, lsl #4
	add	x0, x8, #8
	bl	_refcount_inc
	mov	w22, #0
	b	LBB0_7
LBB0_2:
	mov	x20, x0
	add	w8, w24, #97
	sxtb	w3, w8
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w1, #16
	bl	_snprintf
	ldr	w0, [x20]
	add	x1, sp, #8
	bl	_regulator_get
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x20]
	add	w8, w24, #65
	sxtb	w2, w8
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	mov	x0, x21
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_7
LBB0_4:
	mov	x0, x21
	bl	_regulator_enable
	mov	x22, x0
	cbz	w0, LBB0_6
; %bb.5:
	ldr	w0, [x20]
	add	w8, w24, #65
	sxtb	w2, w8
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	ldr	x0, [x23]
	bl	_regulator_put
	b	LBB0_7
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_sunxi_pinctrl_set_io_bias_cfg
	str	x21, [x23]
	add	x8, x25, x26, lsl #4
	add	x0, x8, #8
	mov	w1, #1
	bl	_refcount_set
LBB0_7:
	ldr	x8, [sp, #24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.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:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PINS_PER_BANK,4,2              ; @PINS_PER_BANK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vcc-p%c"

l_.str.1:                               ; @.str.1
	.asciz	"Couldn't get bank P%c regulator\n"

l_.str.2:                               ; @.str.2
	.asciz	"Couldn't enable bank P%c regulator\n"

	.no_dead_strip	_sunxi_pmx_request
.subsections_via_symbols
