	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_machine__resolve_bstack        ## -- Begin function machine__resolve_bstack
	.p2align	4, 0x90
_machine__resolve_bstack:               ## @machine__resolve_bstack
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movl	(%rdx), %ebx
	movl	%ebx, %edi
	movl	$12, %esi
	callq	_calloc
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.2:
	movq	8(%r13), %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	addq	$4, %rbx
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	4(%rbx), %rdx
	movl	8(%rax,%r12), %ecx
	movq	%r15, %rdi
	movq	%r15, %r13
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_ip__resolve_ams
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	4(%rax,%r12), %ecx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r13, %r15
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_ip__resolve_ams
	movq	8(%r13), %rax
	movl	(%rax,%r12), %ecx
	movl	%ecx, -4(%rbx)
	incq	%r14
	movl	(%r13), %ecx
	addq	$12, %rbx
	addq	$12, %r12
	cmpq	%rcx, %r14
	jb	LBB0_3
LBB0_4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_machine__resolve_bstack        ; -- Begin function machine__resolve_bstack
	.p2align	2
_machine__resolve_bstack:               ; @machine__resolve_bstack
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w23, [x2]
	mov	x0, x23
	mov	w1, #12
	bl	_calloc
	mov	x22, x0
	cmp	x0, #0
	ccmp	w23, #0, #4, ne
	b.eq	LBB0_3
; %bb.1:
	mov	x23, #0
	mov	x24, #0
	ldr	x8, [x19, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x25, x22, x23
	add	x2, x25, #8
	add	x8, x8, x23
	ldr	w3, [x8, #8]
	mov	x0, x21
	mov	x1, x20
	bl	_ip__resolve_ams
	add	x2, x25, #4
	ldr	x8, [x19, #8]
	add	x8, x8, x23
	ldr	w3, [x8, #4]
	mov	x0, x21
	mov	x1, x20
	bl	_ip__resolve_ams
	ldr	x8, [x19, #8]
	ldr	w9, [x8, x23]
	str	w9, [x25]
	add	x24, x24, #1
	ldr	w9, [x19]
	add	x23, x23, #12
	cmp	x24, x9
	b.lo	LBB0_2
LBB0_3:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
