	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function count_nulls
_count_nulls:                           ## @count_nulls
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	(%rdi), %edi
	callq	_get_fn_expr_variadic
	movq	%rax, %rbx
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_PG_NARGS
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.5:
	xorl	%edi, %edi
	cmpl	$1, %eax
	sete	%dil
	callq	_Assert
	xorl	%edi, %edi
	callq	_PG_ARGISNULL
	testq	%rax, %rax
	jne	LBB0_15
## %bb.6:
	movl	(%r12), %edi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	callq	_get_fn_expr_argtype
	movl	%eax, %edi
	callq	_get_base_element_type
	movl	%eax, %edi
	callq	_OidIsValid
	movl	%eax, %edi
	callq	_Assert
	xorl	%edi, %edi
	callq	_PG_GETARG_ARRAYTYPE_P
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ARR_NDIM
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_ARR_DIMS
	movl	%r12d, %edi
	movq	%rax, %rsi
	callq	_ArrayGetNItems
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_ARR_NULLBITMAP
	testq	%rax, %rax
	je	LBB0_14
## %bb.7:
	testl	%r12d, %r12d
	jle	LBB0_14
## %bb.8:
	cmpl	$1, %r12d
	jne	LBB0_10
## %bb.9:
	xorl	%r13d, %r13d
	movl	$1, %ecx
	jmp	LBB0_12
LBB0_1:
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_PG_ARGISNULL
	cmpq	$1, %rax
	sbbl	$-1, %r13d
	incl	%ebx
	xorl	%eax, %eax
	callq	_PG_NARGS
	cmpl	%eax, %ebx
	jl	LBB0_3
LBB0_4:
	xorl	%eax, %eax
	callq	_PG_NARGS
	movl	%eax, %r12d
LBB0_14:
	movl	%r12d, (%r15)
	movl	%r13d, (%r14)
	movl	$1, %r13d
LBB0_15:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	%r12d, %edx
	andl	$-2, %edx
	xorl	%r13d, %r13d
	movl	$1, %r8d
	movl	$1, %ecx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	testl	%ecx, (%rax)
	sete	%dil
	addl	%ecx, %ecx
	xorl	%ebx, %ebx
	cmpl	$256, %ecx                      ## imm = 0x100
	sete	%bl
	leaq	(%rax,%rbx,4), %rsi
	cmovel	%r8d, %ecx
	movl	(%rax,%rbx,4), %eax
	andl	%ecx, %eax
	cmpl	$1, %eax
	adcl	%edi, %r13d
	addl	%ecx, %ecx
	xorl	%eax, %eax
	cmpl	$256, %ecx                      ## imm = 0x100
	sete	%al
	leaq	(%rsi,%rax,4), %rax
	cmovel	%r8d, %ecx
	addl	$-2, %edx
	jne	LBB0_11
LBB0_12:
	testb	$1, %r12b
	je	LBB0_14
## %bb.13:
	andl	(%rax), %ecx
	cmpl	$1, %ecx
	adcl	$0, %r13d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_count_nulls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function count_nulls
_count_nulls:                           ; @count_nulls
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0]
	bl	_get_fn_expr_variadic
	mov	x22, x0
	bl	_PG_NARGS
	cmp	w0, #1
	cbz	x22, LBB0_6
; %bb.1:
	cset	w0, eq
	bl	_Assert
	mov	w0, #0
	bl	_PG_ARGISNULL
	mov	x8, x0
	mov	w0, #0
	cbnz	x8, LBB0_11
; %bb.2:
	ldr	w0, [x21]
	mov	w1, #0
	bl	_get_fn_expr_argtype
	bl	_get_base_element_type
	bl	_OidIsValid
	bl	_Assert
	mov	w0, #0
	bl	_PG_GETARG_ARRAYTYPE_P
	mov	x22, x0
	bl	_ARR_NDIM
	mov	x21, x0
	mov	x0, x22
	bl	_ARR_DIMS
	mov	x1, x0
	mov	x0, x21
	bl	_ArrayGetNItems
	mov	x21, x0
	mov	x0, x22
	bl	_ARR_NULLBITMAP
	mov	w22, #0
	cbz	x0, LBB0_10
; %bb.3:
	cmp	w21, #1
	b.lt	LBB0_10
; %bb.4:
	mov	w22, #0
	mov	w9, #1
	mov	x8, x21
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x0]
	tst	w10, w9
	cinc	w22, w22, eq
	lsl	w9, w9, #1
	cmp	w9, #256
	cset	w10, eq
	add	x0, x0, w10, uxtw #2
	csinc	w9, w9, wzr, ne
	subs	w8, w8, #1
	b.ne	LBB0_5
	b	LBB0_10
LBB0_6:
	mov	w22, #0
	b.lt	LBB0_9
; %bb.7:
	mov	w21, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_PG_ARGISNULL
	cmp	x0, #0
	cinc	w22, w22, ne
	add	w21, w21, #1
	bl	_PG_NARGS
	cmp	w21, w0
	b.lt	LBB0_8
LBB0_9:
	bl	_PG_NARGS
	mov	x21, x0
LBB0_10:
	str	w21, [x20]
	str	w22, [x19]
	mov	w0, #1
LBB0_11:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_count_nulls
.subsections_via_symbols
