	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bs_get_pixel                   ## -- Begin function bs_get_pixel
	.p2align	4, 0x90
_bs_get_pixel:                          ## @bs_get_pixel
	.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_9
## %bb.1:
	testl	%esi, %esi
	js	LBB0_9
## %bb.2:
	movq	_g_width1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%edi, %ecx
	jle	LBB0_9
## %bb.3:
	movq	_g_height1@GOTPCREL(%rip), %rdx
	cmpl	%esi, (%rdx)
	jle	LBB0_9
## %bb.4:
	movq	_g_bs@GOTPCREL(%rip), %r8
	imull	%esi, %ecx
	movq	_g_Bpp@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	imull	%edx, %ecx
	movslq	%ecx, %rax
	addq	(%r8), %rax
	imull	%edx, %edi
	movslq	%edi, %rcx
	cmpl	$2, %edx
	je	LBB0_7
## %bb.5:
	cmpl	$1, %edx
	jne	LBB0_8
## %bb.6:
	movzbl	(%rax,%rcx), %eax
	popq	%rbp
	retq
LBB0_7:
	movzwl	(%rax,%rcx), %eax
	popq	%rbp
	retq
LBB0_8:
	movl	(%rax,%rcx), %eax
LBB0_9:
	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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bs_get_pixel                   ; -- Begin function bs_get_pixel
	.p2align	2
_bs_get_pixel:                          ; @bs_get_pixel
	.cfi_startproc
; %bb.0:
	tbnz	w0, #31, LBB0_6
; %bb.1:
	mov	x8, x0
	mov	w0, #0
	tbnz	w1, #31, LBB0_9
; %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, w8
	ccmp	w10, w1, #4, gt
	b.le	LBB0_9
; %bb.3:
Lloh6:
	adrp	x10, _g_bs@GOTPAGE
Lloh7:
	ldr	x10, [x10, _g_bs@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x10]
	mul	w9, w9, w1
Lloh9:
	adrp	x10, _g_Bpp@GOTPAGE
Lloh10:
	ldr	x10, [x10, _g_Bpp@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	mul	w9, w9, w10
	add	x9, x11, w9, sxtw
	mul	w8, w10, w8
	sxtw	x8, w8
	cmp	w10, #2
	b.eq	LBB0_7
; %bb.4:
	cmp	w10, #1
	b.ne	LBB0_8
; %bb.5:
	ldrb	w0, [x9, x8]
	ret
LBB0_6:
	mov	w0, #0
	ret
LBB0_7:
	ldrh	w0, [x9, x8]
	ret
LBB0_8:
	ldr	w0, [x9, x8]
LBB0_9:
	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
.subsections_via_symbols
