	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ir_resize_table
_ir_resize_table:                       ## @ir_resize_table
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movl	(%rsi), %r14d
	movl	4(%rsi), %eax
	movq	16(%rsi), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	8(%rsi), %ecx
	movl	%r14d, %r15d
	cmpl	%ecx, %eax
	jne	LBB0_4
## %bb.1:
	movq	_IR_TAB_MAX_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jae	LBB0_2
## %bb.3:
	leal	(%r14,%r14), %r15d
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_dev_dbg
	movl	4(%rbx), %eax
	movl	8(%rbx), %ecx
LBB0_4:
	leal	(%rcx,%rcx,2), %ecx
	cmpl	%eax, %ecx
	jge	LBB0_7
## %bb.5:
	movq	_IR_TAB_MIN_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jbe	LBB0_7
## %bb.6:
	shrl	%r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_dev_dbg
LBB0_7:
	xorl	%r13d, %r13d
	cmpl	%r14d, %r15d
	je	LBB0_10
## %bb.8:
	movl	%r15d, %edi
	movl	%r12d, %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.9:
	movq	%rax, %r12
	movq	16(%rbx), %rsi
	movl	8(%rbx), %edx
	shll	$2, %edx
	movq	%rax, %rdi
	callq	_memcpy
	movq	%r12, 16(%rbx)
	movl	%r15d, (%rbx)
	shrl	$2, %r15d
	movl	%r15d, 4(%rbx)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	jmp	LBB0_10
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_10:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IR_TAB_MAX_SIZE,4,2            ## @IR_TAB_MAX_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Growing table to %u bytes\n"

	.comm	_IR_TAB_MIN_SIZE,4,2            ## @IR_TAB_MIN_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"Shrinking table to %u bytes\n"

	.no_dead_strip	_ir_resize_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ir_resize_table
_ir_resize_table:                       ; @ir_resize_table
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x19, x1
	mov	x23, x0
	ldr	x20, [x1, #16]
	ldp	w24, w8, [x1]
	ldr	w9, [x1, #8]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _IR_TAB_MAX_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IR_TAB_MAX_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w24, w8
	b.hs	LBB0_10
; %bb.2:
	lsl	w22, w24, #1
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, x22
	bl	_dev_dbg
	ldp	w8, w9, [x19, #4]
	b	LBB0_4
LBB0_3:
	mov	x22, x24
LBB0_4:
	add	w9, w9, w9, lsl #1
Lloh5:
	adrp	x10, _IR_TAB_MIN_SIZE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _IR_TAB_MIN_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	cmp	w9, w8
	ccmp	w24, w10, #0, lt
	b.ls	LBB0_6
; %bb.5:
	lsr	w22, w22, #1
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	mov	x2, x22
	bl	_dev_dbg
LBB0_6:
	cmp	w22, w24
	b.eq	LBB0_9
; %bb.7:
	mov	x0, x22
	mov	x1, x21
	bl	_kmalloc
	cbz	x0, LBB0_10
; %bb.8:
	mov	x21, x0
	ldr	x1, [x19, #16]
	ldr	w8, [x19, #8]
	lsl	w2, w8, #2
	bl	_memcpy
	str	x21, [x19, #16]
	lsr	w8, w22, #2
	stp	w22, w8, [x19]
	mov	x0, x20
	bl	_kfree
LBB0_9:
	mov	w0, #0
	b	LBB0_11
LBB0_10:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_IR_TAB_MAX_SIZE,4,2            ; @IR_TAB_MAX_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Growing table to %u bytes\n"

	.comm	_IR_TAB_MIN_SIZE,4,2            ; @IR_TAB_MIN_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"Shrinking table to %u bytes\n"

	.no_dead_strip	_ir_resize_table
.subsections_via_symbols
