	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_gpio_ngpio
_intel_gpio_ngpio:                      ## @intel_gpio_ngpio
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %r8d
	testl	%r8d, %r8d
	jle	LBB0_1
## %bb.2:
	movq	8(%rdi), %r9
	xorl	%r11d, %r11d
	xorl	%eax, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r11
	cmpq	%r8, %r11
	je	LBB0_15
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
	movq	%r11, %rcx
	shlq	$4, %rcx
	movl	(%r9,%rcx), %edx
	testl	%edx, %edx
	jle	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r9,%rcx), %rcx
	cmpl	$8, %edx
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edi, %edi
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%edx, %edi
	andl	$-8, %edi
	movd	%eax, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%rdi), %rax
	movq	%rax, %r10
	shrq	$3, %r10
	incq	%r10
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r10, %rsi
	andq	$-2, %rsi
	xorl	%eax, %eax
	movdqa	%xmm0, %xmm1
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	(%rcx,%rax,8), %xmm2
	movdqu	16(%rcx,%rax,8), %xmm3
	phaddd	%xmm3, %xmm2
	movdqu	32(%rcx,%rax,8), %xmm3
	movdqu	48(%rcx,%rax,8), %xmm4
	phaddd	%xmm4, %xmm3
	pmaxud	%xmm0, %xmm2
	pmaxud	%xmm1, %xmm3
	movdqu	80(%rcx,%rax,8), %xmm1
	movdqu	64(%rcx,%rax,8), %xmm0
	phaddd	%xmm1, %xmm0
	movdqu	112(%rcx,%rax,8), %xmm4
	movdqu	96(%rcx,%rax,8), %xmm1
	phaddd	%xmm4, %xmm1
	pmaxud	%xmm2, %xmm0
	pmaxud	%xmm3, %xmm1
	addq	$16, %rax
	addq	$-2, %rsi
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	testb	$1, %r10b
	je	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	(,%rax,8), %rsi
	movdqu	(%rcx,%rax,8), %xmm2
	movdqu	16(%rcx,%rax,8), %xmm3
	phaddd	%xmm3, %xmm2
	orq	$32, %rsi
	pmaxud	%xmm2, %xmm0
	movdqu	(%rcx,%rsi), %xmm2
	movdqu	16(%rcx,%rsi), %xmm3
	phaddd	%xmm3, %xmm2
	pmaxud	%xmm2, %xmm1
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	pmaxud	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	pmaxud	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	pmaxud	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpq	%rdx, %rdi
	je	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	4(%rcx,%rdi,8), %esi
	addl	(%rcx,%rdi,8), %esi
	cmpl	%eax, %esi
	cmoval	%esi, %eax
	incq	%rdi
	cmpq	%rdi, %rdx
	jne	LBB0_13
	jmp	LBB0_14
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	movdqa	%xmm0, %xmm1
	testb	$1, %r10b
	jne	LBB0_11
	jmp	LBB0_12
LBB0_15:
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_intel_gpio_ngpio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_gpio_ngpio
_intel_gpio_ngpio:                      ; @intel_gpio_ngpio
	.cfi_startproc
; %bb.0:
	ldr	w9, [x0]
	cmp	w9, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x8, x0
	mov	x10, #0
	mov	w0, #0
	ldr	x8, [x8, #8]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #1
	cmp	x10, x9
	b.eq	LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
	lsl	x11, x10, #4
	ldr	w11, [x8, x11]
	cmp	w11, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x12, x8, x10, lsl #4
	ldr	x12, [x12, #8]
	cmp	w11, #16
	b.hs	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x13, #0
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	and	x13, x11, #0xfffffff0
	add	x14, x12, #64
	dup.4s	v0, w0
	mov	x15, x13
	mov.16b	v1, v0
	mov.16b	v2, v0
	mov.16b	v3, v0
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	x16, x14, #64
	ld2.4s	{ v4, v5 }, [x16]
	sub	x16, x14, #32
	ld2.4s	{ v6, v7 }, [x16]
	mov	x16, x14
	ld2.4s	{ v16, v17 }, [x16], #32
	ld2.4s	{ v18, v19 }, [x16]
	add.4s	v4, v5, v4
	add.4s	v5, v7, v6
	add.4s	v6, v17, v16
	add.4s	v7, v19, v18
	umax.4s	v0, v4, v0
	umax.4s	v1, v5, v1
	umax.4s	v2, v6, v2
	umax.4s	v3, v7, v3
	add	x14, x14, #128
	subs	x15, x15, #16
	b.ne	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	umax.4s	v0, v0, v1
	umax.4s	v0, v0, v2
	umax.4s	v0, v0, v3
	umaxv.4s	s0, v0
	fmov	w0, s0
	cmp	x13, x11
	b.eq	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x12, x12, x13, lsl #3
	add	x12, x12, #4
	sub	x11, x11, x13
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	w13, w14, [x12, #-4]
	add	w13, w14, w13
	cmp	w13, w0
	csel	w0, w13, w0, hi
	add	x12, x12, #8
	subs	x11, x11, #1
	b.ne	LBB0_10
	b	LBB0_2
LBB0_11:
	ret
LBB0_12:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_intel_gpio_ngpio
.subsections_via_symbols
