	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_obj_aligned_mem          ## -- Begin function i40iw_obj_aligned_mem
	.p2align	4, 0x90
_i40iw_obj_aligned_mem:                 ## @i40iw_obj_aligned_mem
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	(%rdi), %rbx
	movq	%rbx, %rax
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	incq	%rcx
	movq	%rbx, %rdi
	movq	%rcx, %rsi
	callq	_ALIGN
LBB0_2:
	subq	%rbx, %rax
	leaq	(%rbx,%rax,4), %rcx
	movq	%rcx, 8(%r15)
	addq	8(%r12), %rax
	movq	%rax, 16(%r15)
	movq	%r14, (%r15)
	addq	%r14, %rcx
	movq	24(%r12), %rdx
	addq	16(%r12), %rdx
	cmpq	%rdx, %rcx
	jle	LBB0_4
## %bb.3:
	movq	_I40IW_ERR_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_4:
	movq	%rcx, (%r12)
	addq	%r14, %rax
	movq	%rax, 8(%r12)
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_ERR_NO_MEMORY,4,2        ## @I40IW_ERR_NO_MEMORY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_obj_aligned_mem          ; -- Begin function i40iw_obj_aligned_mem
	.p2align	2
_i40iw_obj_aligned_mem:                 ; @i40iw_obj_aligned_mem
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x22, [x0]
	cbz	x3, LBB0_2
; %bb.1:
	add	x1, x3, #1
	mov	x0, x22
	bl	_ALIGN
	b	LBB0_3
LBB0_2:
	mov	x0, x22
LBB0_3:
	ldp	x8, x10, [x19, #8]
	sub	x9, x0, x22
	add	x8, x8, x9
	add	x9, x22, x9, lsl #2
	stp	x9, x8, [x21, #8]
	str	x20, [x21]
	add	x9, x9, x20
	ldr	x11, [x19, #24]
	add	x10, x11, x10
	cmp	x9, x10
	b.le	LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _I40IW_ERR_NO_MEMORY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40IW_ERR_NO_MEMORY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_5:
	mov	w0, #0
	add	x8, x8, x20
	stp	x9, x8, [x19]
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_ERR_NO_MEMORY,4,2        ; @I40IW_ERR_NO_MEMORY
.subsections_via_symbols
