	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_bitmap_sample_size
_get_bitmap_sample_size:                ## @get_bitmap_sample_size
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%r8, %r12
	movq	%rcx, %r13
	movq	16(%rbp), %r14
	addl	$-129, %edi
	cmpl	$3, %edi
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdi
	ja	LBB0_2
## %bb.1:
	callq	_floorf
	movslq	%eax, %r15
	movq	%r12, %rdi
	callq	_floorf
	cltq
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	addq	%r13, %rbx
	movq	%rbx, %rdi
	callq	_ceilf
	movslq	%eax, %r13
	addq	%r12, %r14
	movq	%r14, %rdi
	callq	_ceilf
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cltq
	jmp	LBB0_3
LBB0_2:
	callq	_gdip_round
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_gdip_round
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	addq	%r13, %rbx
	movq	%rbx, %rdi
	callq	_gdip_round
	movq	%rax, %r13
	addq	%r12, %r14
	movq	%r14, %rdi
	callq	_gdip_round
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
LBB0_3:
	movq	24(%rbp), %r8
	movq	_WrapModeClamp@GOTPCREL(%rip), %rdx
	cmpq	%rcx, (%rdx)
	jne	LBB0_7
## %bb.4:
	xorl	%edx, %edx
	testq	%r15, %r15
	cmovleq	%rdx, %r15
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	cmovgq	%rcx, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rdi
	movq	8(%rcx), %rbx
	leaq	-1(%rdi), %rsi
	cmpq	%rdi, %r13
	cmovlq	%r13, %rsi
	leaq	-1(%rbx), %rdi
	cmpq	%rbx, %rax
	cmovlq	%rax, %rdi
	cmpq	%rdx, %rdi
	jl	LBB0_6
## %bb.5:
	cmpq	%r15, %rsi
	jge	LBB0_8
LBB0_6:
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	xorl	%esi, %esi
	xorl	%edi, %edi
	jmp	LBB0_8
LBB0_7:
	testq	%r15, %r15
	setns	%bl
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rsi
	movq	8(%rcx), %rdi
	cmpq	%rsi, %r13
	setl	%cl
	decq	%rsi
	xorl	%edx, %edx
	testb	%cl, %bl
	cmoveq	%rdx, %r15
	cmovneq	%r13, %rsi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	setns	%r9b
	cmpq	%rdi, %rax
	setl	%bl
	decq	%rdi
	testb	%bl, %r9b
	cmovneq	%rcx, %rdx
	cmovneq	%rax, %rdi
LBB0_8:
	movq	%r15, 24(%r8)
	movq	%rdx, 16(%r8)
	subq	%r15, %rsi
	incq	%rsi
	movq	%rsi, 8(%r8)
	subq	%rdx, %rdi
	incq	%rdi
	movq	%rdi, (%r8)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WrapModeClamp,8,3              ## @WrapModeClamp
	.no_dead_strip	_get_bitmap_sample_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_bitmap_sample_size
_get_bitmap_sample_size:                ; @get_bitmap_sample_size
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x7
	mov	x25, x6
	mov	x24, x5
	mov	x26, x4
	mov	x27, x3
	mov	x20, x2
	mov	x22, x1
	sub	w8, w0, #129
	mov	x0, x3
	cmp	w8, #3
	b.hi	LBB0_2
; %bb.1:
	bl	_floorf
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x21, w0
	mov	x0, x26
	bl	_floorf
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x23, w0
	add	x0, x24, x27
	bl	_ceilf
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x24, w0
	add	x0, x25, x26
	bl	_ceilf
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x0, w0
	b	LBB0_3
LBB0_2:
	bl	_gdip_round
	mov	x21, x0
	mov	x0, x26
	bl	_gdip_round
	mov	x23, x0
	add	x0, x24, x27
	bl	_gdip_round
	mov	x24, x0
	add	x0, x25, x26
	bl	_gdip_round
LBB0_3:
Lloh0:
	adrp	x8, _WrapModeClamp@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WrapModeClamp@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x22
	b.ne	LBB0_7
; %bb.4:
	cmp	x21, #0
	csel	x8, x21, xzr, gt
	cmp	x23, #0
	csel	x9, x23, xzr, gt
	ldp	x10, x11, [x20]
	sub	x12, x10, #1
	cmp	x24, x10
	csel	x10, x24, x12, lt
	sub	x12, x11, #1
	cmp	x0, x11
	csel	x11, x0, x12, lt
	cmp	x11, x9
	b.lt	LBB0_6
; %bb.5:
	cmp	x10, x8
	b.ge	LBB0_8
LBB0_6:
	mov	x8, #0
	mov	x9, #0
	mov	x10, #0
	mov	x11, #0
	b	LBB0_8
LBB0_7:
	cmp	x21, #0
	cset	w8, ge
	ldp	x9, x11, [x20]
	cmp	x24, x9
	cset	w10, lt
	sub	x9, x9, #1
	tst	w8, w10
	csel	x8, x21, xzr, ne
	csel	x10, x24, x9, ne
	cmp	x23, #0
	cset	w9, ge
	cmp	x0, x11
	cset	w12, lt
	sub	x11, x11, #1
	tst	w9, w12
	csel	x9, x23, xzr, ne
	csel	x11, x0, x11, ne
LBB0_8:
	stp	x9, x8, [x19, #16]
	sub	x8, x10, x8
	add	x8, x8, #1
	sub	x9, x11, x9
	add	x9, x9, #1
	stp	x9, x8, [x19]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WrapModeClamp,8,3              ; @WrapModeClamp
	.no_dead_strip	_get_bitmap_sample_size
.subsections_via_symbols
