	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_bs_ptr
_get_bs_ptr:                            ## @get_bs_ptr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	testl	%edi, %edi
	js	LBB0_5
## %bb.1:
	testl	%esi, %esi
	js	LBB0_5
## %bb.2:
	movq	_g_width1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%edi, %ecx
	jle	LBB0_5
## %bb.3:
	movq	_g_height1@GOTPCREL(%rip), %rdx
	cmpl	%esi, (%rdx)
	jle	LBB0_5
## %bb.4:
	movq	_g_bs@GOTPCREL(%rip), %rax
	imull	%esi, %ecx
	movq	_g_Bpp@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	imull	%edx, %ecx
	movslq	%ecx, %rcx
	addq	(%rax), %rcx
	imull	%edx, %edi
	movslq	%edi, %rax
	addq	%rcx, %rax
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_width1,4,2                   ## @g_width1
	.comm	_g_height1,4,2                  ## @g_height1
	.comm	_g_bs,8,3                       ## @g_bs
	.comm	_g_Bpp,4,2                      ## @g_Bpp
	.no_dead_strip	_get_bs_ptr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_bs_ptr
_get_bs_ptr:                            ; @get_bs_ptr
	.cfi_startproc
; %bb.0:
	mov	x8, #0
	tbnz	w0, #31, LBB0_4
; %bb.1:
	tbnz	w1, #31, LBB0_4
; %bb.2:
Lloh0:
	adrp	x9, _g_width1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _g_width1@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _g_height1@GOTPAGE
Lloh4:
	ldr	x10, [x10, _g_height1@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, w0
	ccmp	w10, w1, #4, gt
	b.le	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _g_bs@GOTPAGE
Lloh7:
	ldr	x8, [x8, _g_bs@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x10, _g_Bpp@GOTPAGE
Lloh10:
	ldr	x10, [x10, _g_Bpp@GOTPAGEOFF]
	mul	w9, w9, w1
Lloh11:
	ldr	w10, [x10]
	mul	w9, w9, w10
	add	x8, x8, w9, sxtw
	mul	w9, w10, w0
	add	x8, x8, w9, sxtw
LBB0_4:
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_g_width1,4,2                   ; @g_width1
	.comm	_g_height1,4,2                  ; @g_height1
	.comm	_g_bs,8,3                       ; @g_bs
	.comm	_g_Bpp,4,2                      ; @g_Bpp
	.no_dead_strip	_get_bs_ptr
.subsections_via_symbols
