	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_pack                        ## -- Begin function ib_pack
	.p2align	4, 0x90
_ib_pack:                               ## @ib_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	testl	%esi, %esi
	jle	LBB0_18
## %bb.1:
	movq	%rdi, %r12
	movl	%esi, %eax
	shlq	$5, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r12,%r14), %eax
	addl	%ecx, %eax
	movl	$32, %ebx
	subl	%eax, %ebx
	movq	16(%r12,%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r12,%r14), %edi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_value_read
	movl	%ebx, %ecx
	shll	%cl, %eax
	cltq
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%r12,%r14), %ecx
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	$-1, %rdi
                                        ## kill: def $cl killed $cl killed $ecx
	shlq	%cl, %rdi
	notq	%rdi
	movl	%ebx, %ecx
	shlq	%cl, %rdi
	callq	_cpu_to_be32
	movl	%eax, %ebx
	movslq	12(%r12,%r14), %r15
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	(%r13,%r15,4), %r12d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_cpu_to_be32
	xorl	%r12d, %eax
	andl	%ebx, %eax
	xorl	%r12d, %eax
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movl	%eax, (%r13,%r15,4)
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	$32, %r14
	cmpq	%r14, -80(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_18
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%r14), %ecx
	cmpl	$32, %ecx
	jle	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r12,%r14), %eax
	cmpl	$64, %ecx
	ja	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	%ecx, %eax
	movl	$64, %ebx
	subl	%eax, %ebx
	movq	16(%r12,%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r12,%r14), %edi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_value_read
	movl	%ebx, %ecx
	shll	%cl, %eax
	cltq
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%r12,%r14), %ecx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	orl	%ecx, %eax
	testb	$7, %al
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	24(%r12,%r14), %esi
	leaq	L_.str(%rip), %rdi
	movl	%ecx, %edx
	callq	_pr_warn
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	12(%r12,%r14), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rax
	movl	4(%r12,%r14), %ecx
	leal	7(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$3, %edx
	movslq	%edx, %rdi
	addq	%rax, %rdi
	cmpq	$0, 16(%r12,%r14)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movslq	8(%r12,%r14), %rsi
	addq	-56(%rbp), %rsi                 ## 8-byte Folded Reload
	movl	(%r12,%r14), %eax
	leal	7(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$3, %edx
	callq	_memcpy
	jmp	LBB0_17
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	negb	%cl
	movq	$-1, %rdi
                                        ## kill: def $cl killed $cl killed $ecx
	shrq	%cl, %rdi
	movl	%ebx, %ecx
	shlq	%cl, %rdi
	callq	_cpu_to_be64
	movl	%eax, %r15d
	movslq	12(%r12,%r14), %r13
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx,%r13,4), %r12d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_cpu_to_be64
	xorl	%r12d, %eax
	andl	%r15d, %eax
	xorl	%r12d, %eax
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movl	%eax, (%rbx,%r13,4)
	jmp	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12,%r14), %eax
	leal	7(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$3, %edx
	xorl	%esi, %esi
	callq	_memset
	jmp	LBB0_17
LBB0_18:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Structure field %s of size %d bits is not byte-aligned\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_pack                        ; -- Begin function ib_pack
	.p2align	2
_ib_pack:                               ; @ib_pack
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cmp	w1, #1
	b.lt	LBB0_19
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	w24, w1
	add	x25, x0, #12
	mov	w26, #32
	mov	x27, #-1
	b	LBB0_7
LBB0_2:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldur	w8, [x25, #-8]
	add	w8, w2, w8
	sub	w23, w26, w8
	ldur	x1, [x25, #4]
	cbz	x1, LBB0_15
; %bb.3:                                ;   in Loop: Header=BB0_7 Depth=1
	ldur	w0, [x25, #-4]
	mov	x2, x20
	bl	_value_read
	lsl	w8, w0, w23
	sxtw	x22, w8
	ldur	w2, [x25, #-12]
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	lsl	x8, x27, x2
	mvn	x8, x8
	lsl	x0, x8, x23
	bl	_cpu_to_be32
	mov	x23, x0
	ldrsw	x8, [x25]
	lsl	x21, x8, #2
	ldr	w8, [x19, x21]
	bic	w28, w8, w0
	mov	x0, x22
	bl	_cpu_to_be32
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	and	w8, w0, w23
	orr	w8, w8, w28
	str	w8, [x19, x21]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x25, x25, #32
	subs	x24, x24, #1
	b.eq	LBB0_19
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w2, [x25, #-12]
	cmp	w2, #32
	b.le	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldur	w8, [x25, #-8]
	cmp	w2, #64
	b.hi	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	add	w8, w2, w8
	mov	w9, #64
	sub	w23, w9, w8
	ldur	x1, [x25, #4]
	cbz	x1, LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldur	w0, [x25, #-4]
	mov	x2, x20
	bl	_value_read
	lsl	w8, w0, w23
	sxtw	x22, w8
	ldur	w2, [x25, #-12]
	b	LBB0_17
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	orr	w8, w8, w2
	tst	w8, #0x7
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x25, #12]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_pr_warn
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	ldur	x8, [x25, #4]
	ldrsw	x9, [x25]
	add	x9, x19, x9, lsl #2
	ldur	w10, [x25, #-8]
	add	w11, w10, #7
	cmp	w10, #0
	csel	w10, w11, w10, lt
	asr	w10, w10, #3
	add	x0, x9, w10, sxtw
	cbz	x8, LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	ldursw	x8, [x25, #-4]
	add	x1, x20, x8
	ldur	w8, [x25, #-12]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w2, w8, #3
	bl	_memcpy
	b	LBB0_6
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x22, #0
	b	LBB0_4
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x22, #0
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
	neg	w8, w2
	lsr	x8, x27, x8
	lsl	x0, x8, x23
	bl	_cpu_to_be64
	mov	x23, x0
	ldrsw	x8, [x25]
	lsl	x21, x8, #2
	ldr	w8, [x19, x21]
	bic	w28, w8, w0
	mov	x0, x22
	bl	_cpu_to_be64
	b	LBB0_5
LBB0_18:                                ;   in Loop: Header=BB0_7 Depth=1
	ldur	w8, [x25, #-12]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w2, w8, #3
	mov	w1, #0
	bl	_memset
	b	LBB0_6
LBB0_19:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Structure field %s of size %d bits is not byte-aligned\n"

.subsections_via_symbols
