	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sja1105_static_config_get_length ## -- Begin function sja1105_static_config_get_length
	.p2align	4, 0x90
_sja1105_static_config_get_length:      ## @sja1105_static_config_get_length
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_SJA1105_SIZE_DEVICE_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_BLK_IDX_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	testq	%r9, %r9
	je	LBB0_1
## %bb.2:
	movq	(%rdi), %r8
	cmpl	$1, %r9d
	jne	LBB0_4
## %bb.3:
	movl	$1, %ecx
	xorl	%r11d, %r11d
	jmp	LBB0_6
LBB0_1:
	movl	$1, %ecx
	jmp	LBB0_8
LBB0_4:
	movl	%r9d, %r10d
	andl	$-2, %r10d
	leaq	24(%r8), %rdx
	movl	$1, %ecx
	xorl	%r11d, %r11d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	-24(%rdx), %esi
	cmpl	$1, %esi
	sbbl	$-1, %ecx
	movq	-16(%rdx), %rdi
	imull	(%rdi), %esi
	addl	%eax, %esi
	movl	-8(%rdx), %eax
	cmpl	$1, %eax
	sbbl	$-1, %ecx
	movq	(%rdx), %rdi
	imull	(%rdi), %eax
	addl	%esi, %eax
	addq	$2, %r11
	addq	$32, %rdx
	cmpq	%r11, %r10
	jne	LBB0_5
LBB0_6:
	testb	$1, %r9b
	je	LBB0_8
## %bb.7:
	shlq	$4, %r11
	movl	(%r8,%r11), %edx
	cmpl	$1, %edx
	sbbl	$-1, %ecx
	movq	8(%r8,%r11), %rsi
	imull	(%rsi), %edx
	addl	%eax, %edx
	movl	%edx, %eax
LBB0_8:
	movq	_SJA1105_SIZE_TABLE_HEADER@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	addl	$4, %edx
	imull	%ecx, %edx
	addl	%edx, %eax
	addl	$-4, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SJA1105_SIZE_DEVICE_ID,4,2     ## @SJA1105_SIZE_DEVICE_ID
	.comm	_BLK_IDX_MAX,4,2                ## @BLK_IDX_MAX
	.comm	_SJA1105_SIZE_TABLE_HEADER,4,2  ## @SJA1105_SIZE_TABLE_HEADER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sja1105_static_config_get_length ; -- Begin function sja1105_static_config_get_length
	.p2align	2
_sja1105_static_config_get_length:      ; @sja1105_static_config_get_length
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	.cfi_offset w19, -8
	.cfi_offset w20, -16
	.cfi_offset w21, -24
	.cfi_offset w22, -32
Lloh0:
	adrp	x8, _SJA1105_SIZE_DEVICE_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SJA1105_SIZE_DEVICE_ID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _BLK_IDX_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BLK_IDX_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cbz	w9, LBB0_3
; %bb.1:
	ldr	x10, [x0]
	cmp	w9, #4
	b.hs	LBB0_4
; %bb.2:
	mov	x11, #0
	mov	w15, #1
	b	LBB0_7
LBB0_3:
	mov	w15, #1
	b	LBB0_9
LBB0_4:
	mov	w14, #0
	mov	w13, #0
	mov	w12, #0
	mov	w17, #0
	mov	w16, #0
	mov	w15, #0
	and	x11, x9, #0xfffffffc
	add	x1, x10, #32
	mov	w0, #1
	mov	x2, x11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w3, [x1, #-32]
	ldur	w4, [x1, #-16]
	ldr	w5, [x1]
	ldr	w6, [x1, #16]
	cmp	w3, #0
	cinc	w0, w0, ne
	cmp	w4, #0
	cinc	w17, w17, ne
	cmp	w5, #0
	cinc	w16, w16, ne
	cmp	w6, #0
	cinc	w15, w15, ne
	ldur	x7, [x1, #-24]
	ldur	x19, [x1, #-8]
	ldr	x20, [x1, #8]
	ldr	x21, [x1, #24]
	ldr	w7, [x7]
	ldr	w19, [x19]
	ldr	w20, [x20]
	ldr	w21, [x21]
	madd	w8, w7, w3, w8
	madd	w14, w19, w4, w14
	madd	w13, w20, w5, w13
	madd	w12, w21, w6, w12
	add	x1, x1, #64
	subs	x2, x2, #4
	b.ne	LBB0_5
; %bb.6:
	add	w17, w17, w0
	add	w16, w16, w17
	add	w15, w15, w16
	add	w8, w14, w8
	add	w8, w13, w8
	add	w8, w12, w8
	cmp	x11, x9
	b.eq	LBB0_9
LBB0_7:
	add	x10, x10, x11, lsl #4
	add	x10, x10, #8
	sub	x9, x9, x11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w11, [x10, #-8]
	cmp	w11, #0
	cinc	w15, w15, ne
	ldr	x12, [x10], #16
	ldr	w12, [x12]
	madd	w8, w12, w11, w8
	subs	x9, x9, #1
	b.ne	LBB0_8
LBB0_9:
Lloh6:
	adrp	x9, _SJA1105_SIZE_TABLE_HEADER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SJA1105_SIZE_TABLE_HEADER@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	add	w9, w9, #4
	madd	w8, w9, w15, w8
	sub	w0, w8, #4
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SJA1105_SIZE_DEVICE_ID,4,2     ; @SJA1105_SIZE_DEVICE_ID
	.comm	_BLK_IDX_MAX,4,2                ; @BLK_IDX_MAX
	.comm	_SJA1105_SIZE_TABLE_HEADER,4,2  ; @SJA1105_SIZE_TABLE_HEADER
.subsections_via_symbols
