	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bs_init                        ## -- Begin function bs_init
	.p2align	4, 0x90
_bs_init:                               ## @bs_init
	.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
	movl	%edx, %ebx
	movl	%esi, %r14d
	movl	%edi, %r15d
	movq	_g_bs@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_free
LBB0_2:
	movq	_g_width1@GOTPCREL(%rip), %rax
	movl	%r15d, (%rax)
	movq	_g_bpp@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	leal	7(%rbx), %eax
	addl	$14, %ebx
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	movq	_g_height1@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
	sarl	$3, %ebx
	movq	_g_Bpp@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	movl	%r14d, %edi
	imull	%r15d, %edi
	imull	%ebx, %edi
	movq	_g_bs_size@GOTPCREL(%rip), %rbx
	movl	%edi, (%rbx)
	callq	_malloc
	movq	%rax, (%r12)
	movl	(%rbx), %edx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	_g_clip_left1@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_g_clip_top1@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_g_clip_right1@GOTPCREL(%rip), %rax
	movl	%r15d, (%rax)
	movq	_g_clip_bottom1@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_bs,8,3                       ## @g_bs
	.comm	_g_width1,4,2                   ## @g_width1
	.comm	_g_height1,4,2                  ## @g_height1
	.comm	_g_bpp,4,2                      ## @g_bpp
	.comm	_g_Bpp,4,2                      ## @g_Bpp
	.comm	_g_bs_size,4,2                  ## @g_bs_size
	.comm	_g_clip_left1,8,3               ## @g_clip_left1
	.comm	_g_clip_top1,8,3                ## @g_clip_top1
	.comm	_g_clip_right1,4,2              ## @g_clip_right1
	.comm	_g_clip_bottom1,4,2             ## @g_clip_bottom1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bs_init                        ; -- Begin function bs_init
	.p2align	2
_bs_init:                               ; @bs_init
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _g_bs@GOTPAGE
Lloh1:
	ldr	x22, [x22, _g_bs@GOTPAGEOFF]
	ldr	x0, [x22]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_free
LBB0_2:
Lloh2:
	adrp	x8, _g_width1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _g_width1@GOTPAGEOFF]
Lloh4:
	adrp	x9, _g_height1@GOTPAGE
Lloh5:
	ldr	x9, [x9, _g_height1@GOTPAGEOFF]
Lloh6:
	str	w20, [x8]
Lloh7:
	str	w19, [x9]
Lloh8:
	adrp	x8, _g_bpp@GOTPAGE
Lloh9:
	ldr	x8, [x8, _g_bpp@GOTPAGEOFF]
Lloh10:
	str	w21, [x8]
	add	w8, w21, #7
	add	w9, w21, #14
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
Lloh11:
	adrp	x9, _g_Bpp@GOTPAGE
Lloh12:
	ldr	x9, [x9, _g_Bpp@GOTPAGEOFF]
Lloh13:
	str	w8, [x9]
	mul	w9, w19, w20
	mul	w0, w9, w8
Lloh14:
	adrp	x21, _g_bs_size@GOTPAGE
Lloh15:
	ldr	x21, [x21, _g_bs_size@GOTPAGEOFF]
	str	w0, [x21]
	bl	_malloc
	str	x0, [x22]
	ldr	w2, [x21]
	mov	w1, #0
	bl	_memset
Lloh16:
	adrp	x8, _g_clip_left1@GOTPAGE
Lloh17:
	ldr	x8, [x8, _g_clip_left1@GOTPAGEOFF]
Lloh18:
	str	xzr, [x8]
Lloh19:
	adrp	x8, _g_clip_top1@GOTPAGE
Lloh20:
	ldr	x8, [x8, _g_clip_top1@GOTPAGEOFF]
Lloh21:
	str	xzr, [x8]
Lloh22:
	adrp	x8, _g_clip_right1@GOTPAGE
Lloh23:
	ldr	x8, [x8, _g_clip_right1@GOTPAGEOFF]
Lloh24:
	str	w20, [x8]
Lloh25:
	adrp	x8, _g_clip_bottom1@GOTPAGE
Lloh26:
	ldr	x8, [x8, _g_clip_bottom1@GOTPAGEOFF]
Lloh27:
	str	w19, [x8]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_g_bs,8,3                       ; @g_bs
	.comm	_g_width1,4,2                   ; @g_width1
	.comm	_g_height1,4,2                  ; @g_height1
	.comm	_g_bpp,4,2                      ; @g_bpp
	.comm	_g_Bpp,4,2                      ; @g_Bpp
	.comm	_g_bs_size,4,2                  ; @g_bs_size
	.comm	_g_clip_left1,8,3               ; @g_clip_left1
	.comm	_g_clip_top1,8,3                ; @g_clip_top1
	.comm	_g_clip_right1,4,2              ; @g_clip_right1
	.comm	_g_clip_bottom1,4,2             ; @g_clip_bottom1
.subsections_via_symbols
