	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function sh_pfc_map_pins
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.space	4
	.space	4
LCPI0_1:
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.space	4
	.space	4
LCPI0_2:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_sh_pfc_map_pins:                       ## @sh_pfc_map_pins
	.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, %r14
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movl	$8, %edx
	callq	_devm_kcalloc
	movq	%rax, (%r14)
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movl	8(%rbx), %edi
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movl	(%r15), %ecx
	movl	$1, %edx
	callq	_devm_kcalloc
	movq	%rax, 8(%r14)
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.4:
	movq	8(%rax), %rdx
	movq	(%r14), %rsi
	cmpl	$4, %ecx
	jae	LBB0_6
## %bb.5:
	xorl	%edi, %edi
	jmp	LBB0_9
LBB0_6:
	movl	%ecx, %edi
	andl	$-4, %edi
	leaq	(,%rcx,8), %rax
	andq	$-32, %rax
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = <0,1,u,u>
	xorl	%ebx, %ebx
	movdqa	LCPI0_1(%rip), %xmm8            ## xmm8 = <2,2,u,u>
	pcmpeqd	%xmm10, %xmm10
	movdqa	LCPI0_2(%rip), %xmm9            ## xmm9 = <4,4,u,u>
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm2, %xmm6
	paddd	%xmm8, %xmm6
	movdqu	(%rdx,%rbx), %xmm7
	movdqu	16(%rdx,%rbx), %xmm3
	pshufd	$232, %xmm7, %xmm5              ## xmm5 = xmm7[0,2,2,3]
	pshufd	$232, %xmm3, %xmm4              ## xmm4 = xmm3[0,2,2,3]
	movdqa	%xmm5, %xmm0
	pcmpeqd	%xmm10, %xmm0
	movdqa	%xmm4, %xmm1
	blendvps	%xmm0, %xmm2, %xmm5
	pcmpeqd	%xmm10, %xmm1
	movdqa	%xmm1, %xmm0
	blendvps	%xmm0, %xmm6, %xmm4
	pmovzxdq	%xmm5, %xmm0                    ## xmm0 = xmm5[0],zero,xmm5[1],zero
	pblendw	$204, %xmm7, %xmm0              ## xmm0 = xmm0[0,1],xmm7[2,3],xmm0[4,5],xmm7[6,7]
	movdqu	%xmm0, (%rsi,%rbx)
	pmovzxdq	%xmm4, %xmm0                    ## xmm0 = xmm4[0],zero,xmm4[1],zero
	pblendw	$204, %xmm3, %xmm0              ## xmm0 = xmm0[0,1],xmm3[2,3],xmm0[4,5],xmm3[6,7]
	movdqu	%xmm0, 16(%rsi,%rbx)
	paddd	%xmm9, %xmm2
	addq	$32, %rbx
	cmpq	%rbx, %rax
	jne	LBB0_7
## %bb.8:
	xorl	%eax, %eax
	cmpq	%rcx, %rdi
	je	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rdi,8), %eax
	cmpl	$-1, %eax
	movl	%edi, %ebx
	cmovnel	%eax, %ebx
	movl	%ebx, (%rsi,%rdi,8)
	movl	4(%rdx,%rdi,8), %eax
	movl	%eax, 4(%rsi,%rdi,8)
	incq	%rdi
	cmpq	%rdi, %rcx
	jne	LBB0_9
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_sh_pfc_map_pins
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function sh_pfc_map_pins
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_sh_pfc_map_pins:                       ; @sh_pfc_map_pins
	.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
	ldr	w0, [x0, #8]
	ldr	x8, [x20]
	ldr	w1, [x8]
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x21]
	mov	w2, #8
	bl	_devm_kcalloc
	str	x0, [x19]
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x20, #8]
	ldr	x8, [x20]
	ldr	w1, [x8]
	ldr	w3, [x21]
	mov	w2, #1
	bl	_devm_kcalloc
	str	x0, [x19, #8]
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_4
LBB0_2:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
LBB0_4:
	ldr	x9, [x20]
	ldr	w8, [x9]
	cbz	w8, LBB0_12
; %bb.5:
	ldr	x11, [x9, #8]
	ldr	x10, [x19]
	cmp	w8, #8
	b.hs	LBB0_7
; %bb.6:
	mov	x9, #0
	b	LBB0_10
LBB0_7:
	and	x9, x8, #0xfffffff8
	add	x12, x11, #32
Lloh5:
	adrp	x13, lCPI0_0@PAGE
Lloh6:
	ldr	q0, [x13, lCPI0_0@PAGEOFF]
	add	x13, x10, #32
	movi.4s	v1, #4
	movi.2d	v2, #0xffffffffffffffff
	movi.4s	v3, #8
	mov	x14, x9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	sub	x15, x12, #32
	ld2.4s	{ v4, v5 }, [x15]
	add.4s	v6, v0, v1
	ld2.4s	{ v16, v17 }, [x12]
	cmeq.4s	v7, v4, v2
	bit.16b	v4, v0, v7
	sub	x15, x13, #32
	st2.4s	{ v4, v5 }, [x15]
	cmeq.4s	v4, v16, v2
	bit.16b	v16, v6, v4
	st2.4s	{ v16, v17 }, [x13]
	add.4s	v0, v0, v3
	add	x12, x12, #64
	add	x13, x13, #64
	subs	x14, x14, #8
	b.ne	LBB0_8
; %bb.9:
	cmp	x9, x8
	b.eq	LBB0_12
LBB0_10:
	lsl	x12, x9, #3
	add	x11, x11, x12
	add	x11, x11, #4
	add	x10, x10, x12
	add	x10, x10, #4
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldur	w12, [x11, #-4]
	cmn	w12, #1
	csel	w12, w9, w12, eq
	stur	w12, [x10, #-4]
	ldr	w12, [x11], #8
	str	w12, [x10], #8
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_11
LBB0_12:
	mov	w0, #0
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdr	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_sh_pfc_map_pins
.subsections_via_symbols
