	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sbitmap_resize                 ## -- Begin function sbitmap_resize
	.p2align	4, 0x90
_sbitmap_resize:                        ## @sbitmap_resize
	.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, %r13d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	%esi, %edi
	callq	_SBITMAP_SET_SIZE
	movl	%eax, %r15d
	leal	(,%r15,4), %r12d
	cmpl	(%rbx), %r12d
	ja	LBB0_1
## %bb.2:
	cmpl	%r14d, 4(%rbx)
	jae	LBB0_7
LBB0_3:
	movslq	16(%rbx), %rdi
	shlq	$2, %rdi
	addq	8(%rbx), %rdi
	movl	%r12d, %edx
	subl	(%rbx), %edx
	testl	%r13d, %r13d
	je	LBB0_6
## %bb.4:
	movl	$-1, %r13d
	movl	$-1, %esi
	callq	_memset
	movl	4(%rbx), %eax
	movq	_SBITMAP_ELT_BITS@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ecx
	xorl	%edx, %edx
	divl	%ecx
	testl	%edx, %edx
	je	LBB0_9
## %bb.5:
	subl	%edx, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %r13d
	notl	%r13d
	movq	8(%rbx), %rax
	movslq	16(%rbx), %rcx
	orl	%r13d, -4(%rax,%rcx,4)
	movl	(%rsi), %ecx
	jmp	LBB0_9
LBB0_1:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_xrealloc
	movq	%rax, %rbx
	cmpl	%r14d, 4(%rbx)
	jb	LBB0_3
LBB0_7:
	jbe	LBB0_11
## %bb.8:
	movq	_SBITMAP_ELT_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_9:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ecx
	testl	%edx, %edx
	je	LBB0_11
## %bb.10:
	subl	%edx, %ecx
	movq	8(%rbx), %rax
	movl	%r15d, %edx
	decl	%edx
	movl	(%rax,%rdx,4), %esi
	shll	%cl, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %esi
	movl	%esi, (%rax,%rdx,4)
	jmp	LBB0_11
LBB0_6:
	xorl	%esi, %esi
	callq	_memset
LBB0_11:
	movl	%r14d, 4(%rbx)
	movl	%r15d, 16(%rbx)
	movl	%r12d, (%rbx)
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SBITMAP_ELT_BITS,4,2           ## @SBITMAP_ELT_BITS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sbitmap_resize                 ; -- Begin function sbitmap_resize
	.p2align	2
_sbitmap_resize:                        ; @sbitmap_resize
	.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	x23, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_SBITMAP_SET_SIZE
	mov	x22, x0
	lsl	w21, w0, #2
	ldr	w8, [x20]
	cmp	w21, w8
	b.ls	LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	bl	_xrealloc
	mov	x20, x0
LBB0_2:
	ldr	w8, [x20, #4]
	cmp	w8, w19
	b.hs	LBB0_6
; %bb.3:
	ldr	x8, [x20, #8]
	ldrsw	x9, [x20, #16]
	add	x0, x8, x9, lsl #2
	ldr	w8, [x20]
	sub	w2, w21, w8
	cbz	w23, LBB0_10
; %bb.4:
	mov	w23, #-1
	mov	w1, #-1
	bl	_memset
	ldr	w10, [x20, #4]
Lloh0:
	adrp	x9, _SBITMAP_ELT_BITS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SBITMAP_ELT_BITS@GOTPAGEOFF]
	ldr	w8, [x9]
	udiv	w11, w10, w8
	msub	w10, w11, w8, w10
	cbz	w10, LBB0_8
; %bb.5:
	sub	w8, w8, w10
	lsr	w8, w23, w8
	ldr	x10, [x20, #8]
	ldrsw	x11, [x20, #16]
	add	x10, x10, x11, lsl #2
	ldur	w11, [x10, #-4]
	orn	w8, w11, w8
	stur	w8, [x10, #-4]
	ldr	w8, [x9]
	b	LBB0_8
LBB0_6:
	b.ls	LBB0_11
; %bb.7:
Lloh2:
	adrp	x8, _SBITMAP_ELT_BITS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SBITMAP_ELT_BITS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
LBB0_8:
	udiv	w9, w19, w8
	msub	w9, w9, w8, w19
	cbz	w9, LBB0_11
; %bb.9:
	sub	w8, w8, w9
	mov	w9, #-1
	lsr	w8, w9, w8
	ldr	x9, [x20, #8]
	sub	w10, w22, #1
	lsl	x10, x10, #2
	ldr	w11, [x9, x10]
	and	w8, w11, w8
	str	w8, [x9, x10]
	b	LBB0_11
LBB0_10:
	mov	w1, #0
	bl	_memset
LBB0_11:
	str	w22, [x20, #16]
	stp	w21, w19, [x20]
	mov	x0, x20
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SBITMAP_ELT_BITS,4,2           ; @SBITMAP_ELT_BITS
.subsections_via_symbols
