	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sja1105_packing                ## -- Begin function sja1105_packing
	.p2align	4, 0x90
_sja1105_packing:                       ## @sja1105_packing
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	_QUIRK_LSW32_IS_FIRST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	callq	_packing
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_1
## %bb.9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rdi
LBB0_3:
	movl	%r15d, %esi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_8
LBB0_4:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	jne	LBB0_8
## %bb.5:
	movl	%r15d, %eax
	subl	%r14d, %eax
	cmpl	$64, %eax
	jl	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_3
LBB0_7:
	movl	(%r12), %esi
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_pr_err
LBB0_8:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dump_stack                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_QUIRK_LSW32_IS_FIRST,4,2       ## @QUIRK_LSW32_IS_FIRST
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Start bit (%d) expected to be larger than end (%d)\n"

	.comm	_ERANGE,4,2                     ## @ERANGE
L_.str.1:                               ## @.str.1
	.asciz	"Field %d-%d too large for 64 bits!\n"

L_.str.2:                               ## @.str.2
	.asciz	"Cannot store %llx inside bits %d-%d (would truncate)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sja1105_packing                ; -- Begin function sja1105_packing
	.p2align	2
_sja1105_packing:                       ; @sja1105_packing
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x3
	mov	x19, x2
	mov	x21, x1
Lloh0:
	adrp	x8, _QUIRK_LSW32_IS_FIRST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QUIRK_LSW32_IS_FIRST@GOTPAGEOFF]
Lloh2:
	ldr	w6, [x8]
	bl	_packing
	mov	x22, x0
	cmp	w0, #0
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmn	w22, w8
	b.ne	LBB0_6
; %bb.3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
	mov	x1, x19
	mov	x2, x20
LBB0_5:
	bl	_pr_err
	b	LBB0_9
LBB0_6:
Lloh8:
	adrp	x8, _ERANGE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmn	w22, w8
	b.ne	LBB0_9
; %bb.7:
	sub	w8, w19, w20
	cmp	w8, #64
	b.lt	LBB0_10
; %bb.8:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_dump_stack
LBB0_10:
	ldr	w1, [x21]
	str	x20, [sp]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x2, x19
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_QUIRK_LSW32_IS_FIRST,4,2       ; @QUIRK_LSW32_IS_FIRST
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Start bit (%d) expected to be larger than end (%d)\n"

	.comm	_ERANGE,4,2                     ; @ERANGE
l_.str.1:                               ; @.str.1
	.asciz	"Field %d-%d too large for 64 bits!\n"

l_.str.2:                               ; @.str.2
	.asciz	"Cannot store %llx inside bits %d-%d (would truncate)\n"

.subsections_via_symbols
