	.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	%esi, %r12d
	movq	%rdi, %rbx
	movl	(%rdi), %r14d
	movl	4(%rdi), %eax
	movq	16(%rdi), %r13
	movl	8(%rdi), %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
	movl	$1, %edi
	movl	%r15d, %edx
	callq	_IR_dprintk
	movl	4(%rbx), %eax
	movl	8(%rbx), %ecx
LBB0_4:
	leal	(%rcx,%rcx,2), %ecx
	cmpl	%eax, %ecx
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	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
	movl	$1, %edi
	movl	%r15d, %edx
	callq	_IR_dprintk
LBB0_7:
	xorl	%r13d, %r13d
	cmpl	%r14d, %r15d
	je	LBB0_11
## %bb.8:
	movl	%r15d, %edi
	movl	%r12d, %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	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_11
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movl	%r15d, %edx
	callq	_IR_dprintk
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_11:
	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"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to kmalloc %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	x22, x1
	mov	x19, x0
	ldr	x20, [x0, #16]
	ldp	w23, w8, [x0]
	ldr	w9, [x0, #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	w23, w8
	b.hs	LBB0_11
; %bb.2:
	lsl	w21, w23, #1
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	bl	_IR_dprintk
	ldp	w8, w9, [x19, #4]
	b	LBB0_4
LBB0_3:
	mov	x21, x23
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	w23, w10, #0, lt
	b.ls	LBB0_6
; %bb.5:
	lsr	w21, w21, #1
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	bl	_IR_dprintk
LBB0_6:
	cmp	w21, w23
	b.eq	LBB0_9
; %bb.7:
	mov	x0, x21
	mov	x1, x22
	bl	_kmalloc
	cbz	x0, LBB0_10
; %bb.8:
	mov	x22, x0
	ldr	x1, [x19, #16]
	ldr	w8, [x19, #8]
	lsl	w2, w8, #2
	bl	_memcpy
	str	x22, [x19, #16]
	lsr	w8, w21, #2
	stp	w21, w8, [x19]
	mov	x0, x20
	bl	_kfree
LBB0_9:
	mov	w0, #0
	b	LBB0_12
LBB0_10:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	bl	_IR_dprintk
LBB0_11:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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 AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to kmalloc %u bytes\n"

	.no_dead_strip	_ir_resize_table
.subsections_via_symbols
