	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pdc_setup_pin_mapping
_pdc_setup_pin_mapping:                 ## @pdc_setup_pin_mapping
	.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
	leaq	L_.str(%rip), %rsi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	$4, %edx
	callq	_of_property_count_elems_of_size
	testl	%eax, %eax
	jle	LBB0_10
## %bb.1:
	movslq	%eax, %rcx
	imulq	$1431655766, %rcx, %rdx         ## imm = 0x55555556
	movq	%rdx, %rsi
	shrq	$63, %rsi
	shrq	$32, %rdx
	addl	%esi, %edx
	leal	(%rdx,%rdx,2), %edx
	subl	%edx, %ecx
	jne	LBB0_10
## %bb.2:
	movl	%eax, %eax
	movl	$2863311531, %edi               ## imm = 0xAAAAAAAB
	imulq	%rax, %rdi
	shrq	$33, %rdi
	movq	_pdc_region_cnt@GOTPCREL(%rip), %rbx
	movl	%edi, (%rbx)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$12, %esi
	callq	_kcalloc
	movq	_pdc_region@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	cmpl	$0, (%rbx)
	jle	LBB0_15
## %bb.4:
	addq	$8, %rax
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	movq	%rax, %rcx
	callq	_of_property_read_u32_index
	testl	%eax, %eax
	jne	LBB0_13
## %bb.5:
	movl	$1, %ebx
	movl	$20, %r12d
	xorl	%r13d, %r13d
	leaq	L_.str(%rip), %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_pdc_region@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%r12), %rcx
	addq	$-16, %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_of_property_read_u32_index
	testl	%eax, %eax
	jne	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_pdc_region@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%r12), %rcx
	addq	$-20, %rcx
	leal	1(%rbx), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %r14
	movq	%r15, %rsi
	callq	_of_property_read_u32_index
	testl	%eax, %eax
	jne	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%r13
	movq	_pdc_region_cnt@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r13
	jge	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	leal	3(%rbx), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	leaq	12(%r12), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_pdc_region@GOTPCREL(%rip), %rax
	addq	(%rax), %r12
	addl	$2, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%ebx, %edx
	movq	%r12, %rcx
	callq	_of_property_read_u32_index
	movq	%r14, %r15
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %ebx
	testl	%eax, %eax
	je	LBB0_6
	jmp	LBB0_13
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_11:
	movl	$0, (%rbx)
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_12:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	xorl	%eax, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"qcom,pdc-ranges"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_pdc_region_cnt,4,2             ## @pdc_region_cnt
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_pdc_region,8,3                 ## @pdc_region
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_pdc_setup_pin_mapping
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pdc_setup_pin_mapping
_pdc_setup_pin_mapping:                 ; @pdc_setup_pin_mapping
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_of_property_count_elems_of_size
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.1:
	mov	w8, #21846
	movk	w8, #21845, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w8, w8, w9
	add	w8, w8, w8, lsl #1
	sub	w8, w0, w8
	cbnz	w8, LBB0_10
; %bb.2:
	mov	w8, #43691
	movk	w8, #43690, lsl #16
	umull	x8, w0, w8
	lsr	x0, x8, #33
Lloh2:
	adrp	x22, _pdc_region_cnt@GOTPAGE
Lloh3:
	ldr	x22, [x22, _pdc_region_cnt@GOTPAGEOFF]
	str	w0, [x22]
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #12
	bl	_kcalloc
Lloh7:
	adrp	x23, _pdc_region@GOTPAGE
Lloh8:
	ldr	x23, [x23, _pdc_region@GOTPAGEOFF]
	str	x0, [x23]
	cbz	x0, LBB0_11
; %bb.3:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.4:
	add	x3, x0, #8
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	bl	_of_property_read_u32_index
	cbnz	w0, LBB0_13
; %bb.5:
	mov	x24, #0
	mov	w21, #1
	mov	w25, #20
Lloh11:
	adrp	x20, l_.str@PAGE
Lloh12:
	add	x20, x20, l_.str@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x8, x8, x25
	sub	x3, x8, #16
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_of_property_read_u32_index
	cbnz	w0, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x23]
	add	x8, x8, x25
	sub	x3, x8, #20
	add	w2, w21, #1
	mov	x0, x19
	mov	x1, x20
	bl	_of_property_read_u32_index
	cbnz	w0, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x22]
	cmp	x24, x8
	b.ge	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w26, w21, #3
	add	x27, x25, #12
	ldr	x8, [x23]
	add	x3, x8, x25
	add	w2, w21, #2
	mov	x0, x19
	mov	x1, x20
	bl	_of_property_read_u32_index
	mov	x25, x27
	mov	x21, x26
	cbz	w0, LBB0_6
	b	LBB0_13
LBB0_10:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
	str	wzr, [x22]
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	w0, #0
	b	LBB0_13
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"qcom,pdc-ranges"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_pdc_region_cnt,4,2             ; @pdc_region_cnt
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_pdc_region,8,3                 ; @pdc_region
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_pdc_setup_pin_mapping
.subsections_via_symbols
