	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pm8xxx_pin_populate
_pm8xxx_pin_populate:                   ## @pm8xxx_pin_populate
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%edx, %edx
	callq	_pm8xxx_read_bank
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_9
## %bb.1:
	shrl	%ebx
	andl	$7, %ebx
	movl	%ebx, (%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_pm8xxx_read_bank
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_9
## %bb.2:
	movl	%ebx, %eax
	shrl	$2, %eax
	andl	$3, %eax
	movl	%eax, 4(%r15)
	movl	$1, %edi
	callq	_BIT
	xorl	%ecx, %ecx
	testl	%ebx, %eax
	setne	%cl
	movl	%ecx, 8(%r15)
	xorl	%edi, %edi
	callq	_BIT
	andl	%ebx, %eax
	movl	%eax, 12(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$2, %edx
	callq	_pm8xxx_read_bank
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_9
## %bb.3:
	shrl	%ebx
	andl	$7, %ebx
	movl	%ebx, 16(%r15)
	movq	_PM8XXX_GPIO_BIAS_PU_1P5_30@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jle	LBB0_5
## %bb.4:
	movq	_PM8XXX_GPIO_BIAS_PU_30@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_5:
	movl	%ebx, 20(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$3, %edx
	callq	_pm8xxx_read_bank
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_9
## %bb.6:
	movl	%ebx, %eax
	shrl	$2, %eax
	andl	$3, %eax
	movl	%eax, 24(%r15)
	xorl	%edi, %edi
	callq	_BIT
	andl	%ebx, %eax
	movl	%eax, 28(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_pm8xxx_read_bank
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_9
## %bb.7:
	shrl	%ebx
	andl	$7, %ebx
	movl	%ebx, 32(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$5, %edx
	callq	_pm8xxx_read_bank
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_9
## %bb.8:
	movl	$3, %edi
	callq	_BIT
	xorl	%ecx, %ecx
	testl	%ebx, %eax
	sete	%cl
	movl	%ecx, 36(%r15)
	xorl	%ebx, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PM8XXX_GPIO_BIAS_PU_1P5_30,4,2 ## @PM8XXX_GPIO_BIAS_PU_1P5_30
	.comm	_PM8XXX_GPIO_BIAS_PU_30,4,2     ## @PM8XXX_GPIO_BIAS_PU_30
	.no_dead_strip	_pm8xxx_pin_populate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pm8xxx_pin_populate
_pm8xxx_pin_populate:                   ; @pm8xxx_pin_populate
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	mov	w2, #0
	bl	_pm8xxx_read_bank
	mov	x21, x0
	tbnz	w0, #31, LBB0_7
; %bb.1:
	ubfx	w8, w21, #1, #3
	str	w8, [x19]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_pm8xxx_read_bank
	mov	x21, x0
	tbnz	w0, #31, LBB0_7
; %bb.2:
	ubfx	w8, w21, #2, #2
	str	w8, [x19, #4]
	mov	w0, #1
	bl	_BIT
	tst	w0, w21
	cset	w8, ne
	str	w8, [x19, #8]
	mov	w0, #0
	bl	_BIT
	and	w8, w0, w21
	str	w8, [x19, #12]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #2
	bl	_pm8xxx_read_bank
	mov	x21, x0
	tbnz	w0, #31, LBB0_7
; %bb.3:
	ubfx	w8, w21, #1, #3
Lloh0:
	adrp	x9, _PM8XXX_GPIO_BIAS_PU_1P5_30@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PM8XXX_GPIO_BIAS_PU_1P5_30@GOTPAGEOFF]
Lloh2:
	adrp	x10, _PM8XXX_GPIO_BIAS_PU_30@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PM8XXX_GPIO_BIAS_PU_30@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	ldr	w10, [x10]
	cmp	w8, w9
	csel	w9, w10, w8, gt
	stp	w8, w9, [x19, #16]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #3
	bl	_pm8xxx_read_bank
	mov	x21, x0
	tbnz	w0, #31, LBB0_7
; %bb.4:
	ubfx	w8, w21, #2, #2
	str	w8, [x19, #24]
	mov	w0, #0
	bl	_BIT
	and	w8, w0, w21
	str	w8, [x19, #28]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #4
	bl	_pm8xxx_read_bank
	mov	x21, x0
	tbnz	w0, #31, LBB0_7
; %bb.5:
	ubfx	w8, w21, #1, #3
	str	w8, [x19, #32]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #5
	bl	_pm8xxx_read_bank
	mov	x21, x0
	tbnz	w0, #31, LBB0_7
; %bb.6:
	mov	w0, #3
	bl	_BIT
	tst	w0, w21
	mov	w21, #0
	cset	w8, eq
	str	w8, [x19, #36]
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PM8XXX_GPIO_BIAS_PU_1P5_30,4,2 ; @PM8XXX_GPIO_BIAS_PU_1P5_30
	.comm	_PM8XXX_GPIO_BIAS_PU_30,4,2     ; @PM8XXX_GPIO_BIAS_PU_30
	.no_dead_strip	_pm8xxx_pin_populate
.subsections_via_symbols
