	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sja1105_static_config_pack     ## -- Begin function sja1105_static_config_pack
	.p2align	4, 0x90
_sja1105_static_config_pack:            ## @sja1105_static_config_pack
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	$0, -64(%rbp)
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	addq	$8, %rsi
	movl	$31, %edx
	xorl	%ecx, %ecx
	movl	$4, %r8d
	callq	_sja1105_pack
	movq	_SJA1105_SIZE_DEVICE_ID@GOTPCREL(%rip), %rax
	movslq	(%rax), %r13
	addq	%r15, %r13
	movq	_BLK_IDX_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	xorl	%edx, %edx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_sja1105_table_write_crc
	addq	$4, %r13
	movq	_BLK_IDX_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	movl	%eax, %ecx
	cmpq	%rcx, %rdx
	jae	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %r14
	leaq	(%rdx,%rdx,2), %rbx
	movl	(%r14,%rbx,8), %ecx
	testl	%ecx, %ecx
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r14,%rbx,8), %r15
	movq	_blk_id_map@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rdx,8), %rax
	movq	%rax, -72(%rbp)
	movq	8(%r14,%rbx,8), %rax
	imull	(%rax), %ecx
	leal	3(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$2, %eax
	movl	%eax, -80(%rbp)
	movq	%r13, %rdi
	leaq	-80(%rbp), %rsi
	callq	_sja1105_table_header_pack_with_crc
	movq	_SJA1105_SIZE_TABLE_HEADER@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	%r13, %rax
	cmpl	$0, (%r15)
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %r13
	jle	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rcx
	leaq	(%r14,%rbx,8), %r12
	addq	$8, %r12
	movq	(%r12), %rax
	movl	(%rax), %edx
	xorl	%r15d, %r15d
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	4(%rax), %rbx
	movslq	%r15d, %r15
	imulq	%r15, %rbx
	shlq	$2, %rbx
	addq	8(%r12), %rbx
	movq	%r13, %rdi
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%rcx, %r14
	callq	_memset
	movq	(%r12), %rax
	movq	_PACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	*8(%rax)
	movq	%r14, %rcx
	movq	(%r12), %rax
	movslq	(%rax), %rdx
	addq	%rdx, %r13
	incl	%r15d
	cmpl	(%r14), %r15d
	jl	LBB0_5
	jmp	LBB0_6
LBB0_8:
	movq	$0, -72(%rbp)
	movabsq	$-2401053092612145152, %rax     ## imm = 0xDEADBEEF00000000
	movq	%rax, -80(%rbp)
	movq	_SJA1105_SIZE_TABLE_HEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	_PACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-80(%rbp), %rsi
	movq	%r13, %rdi
	callq	_sja1105_table_header_packing
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	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	_blk_id_map,8,3                 ## @blk_id_map
	.comm	_SJA1105_SIZE_TABLE_HEADER,4,2  ## @SJA1105_SIZE_TABLE_HEADER
	.comm	_PACK,4,2                       ## @PACK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function sja1105_static_config_pack
lCPI0_0:
	.long	0                               ; 0x0
	.long	3735928559                      ; 0xdeadbeef
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_sja1105_static_config_pack
	.p2align	2
_sja1105_static_config_pack:            ; @sja1105_static_config_pack
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x0
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp, #24]
	str	x1, [sp]                        ; 8-byte Folded Spill
	add	x1, x1, #8
	mov	w2, #31
	mov	w3, #0
	mov	w4, #4
	bl	_sja1105_pack
Lloh0:
	adrp	x8, _SJA1105_SIZE_DEVICE_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SJA1105_SIZE_DEVICE_ID@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
Lloh3:
	adrp	x9, _BLK_IDX_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BLK_IDX_MAX@GOTPAGEOFF]
	add	x20, x20, x8
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x23, _PACK@GOTPAGE
Lloh7:
	ldr	x23, [x23, _PACK@GOTPAGEOFF]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x26, #0
	mov	w27, #24
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_sja1105_table_write_crc
	add	x20, x21, #4
Lloh8:
	adrp	x8, _BLK_IDX_MAX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BLK_IDX_MAX@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #1
	cmp	x26, w8, uxtw
	b.hs	LBB0_8
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	ldr	x19, [x9]
	madd	x24, x26, x27, x19
	ldr	w9, [x24]
	cbz	w9, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh11:
	adrp	x8, _blk_id_map@GOTPAGE
Lloh12:
	ldr	x8, [x8, _blk_id_map@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x8, [x8, x26, lsl #3]
	str	x8, [sp, #16]
	madd	x28, x26, x27, x19
	ldr	x8, [x28, #8]!
	ldr	w8, [x8]
	mul	w8, w8, w9
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
	str	w8, [sp, #8]
	add	x1, sp, #8
	mov	x0, x20
	bl	_sja1105_table_header_pack_with_crc
Lloh14:
	adrp	x8, _SJA1105_SIZE_TABLE_HEADER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SJA1105_SIZE_TABLE_HEADER@GOTPAGEOFF]
Lloh16:
	ldrsw	x8, [x8]
	add	x20, x20, x8
	ldr	w8, [x24]
	mov	x21, x20
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w25, #0
	madd	x8, x26, x27, x19
	add	x19, x8, #16
	ldr	x8, [x28]
	ldr	w2, [x8]
	mov	x21, x20
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x19]
	ldr	w8, [x8, #4]
	mul	w8, w8, w25
	add	x22, x9, w8, sxtw #2
	mov	x0, x21
	mov	w1, #0
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memset
	ldr	x8, [x28]
	ldr	x8, [x8, #8]
	ldr	w2, [x23]
	mov	x0, x21
	mov	x1, x22
	blr	x8
	ldr	x8, [x28]
	ldrsw	x2, [x8]
	add	x21, x21, x2
	add	w25, w25, #1
	ldr	w9, [x24]
	cmp	w25, w9
	b.lt	LBB0_7
	b	LBB0_2
LBB0_8:
	str	xzr, [sp, #16]
Lloh17:
	adrp	x8, lCPI0_0@PAGE
Lloh18:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #8]
Lloh19:
	adrp	x8, _SJA1105_SIZE_TABLE_HEADER@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SJA1105_SIZE_TABLE_HEADER@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_memset
	ldr	w2, [x23]
	add	x1, sp, #8
	mov	x0, x20
	bl	_sja1105_table_header_packing
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdrp	Lloh17, Lloh19
	.loh AdrpLdr	Lloh17, Lloh18
	.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	_blk_id_map,8,3                 ; @blk_id_map
	.comm	_SJA1105_SIZE_TABLE_HEADER,4,2  ; @SJA1105_SIZE_TABLE_HEADER
	.comm	_PACK,4,2                       ; @PACK
.subsections_via_symbols
