	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tbm_union_page
_tbm_union_page:                        ## @tbm_union_page
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	cmpq	$0, 16(%rsi)
	je	LBB0_10
## %bb.1:
	movq	_WORDS_PER_CHUNK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_16
## %bb.2:
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_WORDS_PER_CHUNK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movslq	%eax, %rcx
	cmpq	%rcx, %r13
	jge	LBB0_16
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	(%r14), %rcx
	movl	(%rcx,%r13,4), %r12d
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_BITS_PER_BITMAPWORD@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movslq	%r13d, %rbx
	imulq	%rax, %rbx
	addq	24(%r14), %rbx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	incq	%rbx
	movl	%r12d, %eax
	sarl	%eax
	cmpl	$1, %r12d
	movl	%eax, %r12d
	jbe	LBB0_8
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testb	$1, %r12b
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_tbm_mark_page_lossy
	jmp	LBB0_7
LBB0_10:
	movq	24(%r14), %rsi
	movq	%r15, %rdi
	callq	_tbm_page_is_lossy
	testq	%rax, %rax
	jne	LBB0_17
## %bb.11:
	movq	24(%r14), %rsi
	movq	%r15, %rdi
	callq	_tbm_get_pageentry
	cmpq	$0, 16(%rax)
	je	LBB0_12
## %bb.18:
	movq	(%rax), %rax
	orl	$1, (%rax)
	jmp	LBB0_16
LBB0_12:
	movq	_WORDS_PER_PAGE@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_15
## %bb.13:
	movq	(%r14), %rdx
	movq	(%rax), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rdi,4), %ebx
	orl	%ebx, (%rsi,%rdi,4)
	incq	%rdi
	movslq	(%rcx), %rbx
	cmpq	%rbx, %rdi
	jl	LBB0_14
LBB0_15:
	movl	8(%r14), %ecx
	orl	%ecx, 8(%rax)
LBB0_16:
	movq	(%r15), %rax
	cmpq	8(%r15), %rax
	jle	LBB0_17
## %bb.19:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tbm_lossify                    ## TAILCALL
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WORDS_PER_CHUNK,4,2            ## @WORDS_PER_CHUNK
	.comm	_BITS_PER_BITMAPWORD,4,2        ## @BITS_PER_BITMAPWORD
	.comm	_WORDS_PER_PAGE,4,2             ## @WORDS_PER_PAGE
	.no_dead_strip	_tbm_union_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tbm_union_page
_tbm_union_page:                        ; @tbm_union_page
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_10
; %bb.1:
Lloh0:
	adrp	x22, _WORDS_PER_CHUNK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _WORDS_PER_CHUNK@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.2:
	mov	x23, #0
Lloh2:
	adrp	x24, _BITS_PER_BITMAPWORD@GOTPAGE
Lloh3:
	ldr	x24, [x24, _BITS_PER_BITMAPWORD@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x22]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	cmp	x23, w8, sxtw
	b.ge	LBB0_17
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x9, [x20]
	ldr	w25, [x9, x23, lsl #2]
	cbz	w25, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #24]
	ldrsw	x9, [x24]
	sxtw	x10, w23
	madd	x21, x9, x10, x8
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x21, x21, #1
	asr	w8, w25, #1
	cmp	w25, #1
	mov	x25, x8
	b.ls	LBB0_3
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	tbz	w25, #0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x19
	mov	x1, x21
	bl	_tbm_mark_page_lossy
	b	LBB0_7
LBB0_10:
	ldr	x1, [x20, #24]
	mov	x0, x19
	bl	_tbm_page_is_lossy
	cbnz	x0, LBB0_19
; %bb.11:
	ldr	x1, [x20, #24]
	mov	x0, x19
	bl	_tbm_get_pageentry
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_13
; %bb.12:
	ldr	x8, [x0]
	ldr	w9, [x8]
	orr	w9, w9, #0x1
	str	w9, [x8]
	b	LBB0_17
LBB0_13:
Lloh4:
	adrp	x8, _WORDS_PER_PAGE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WORDS_PER_PAGE@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_16
; %bb.14:
	mov	x9, #0
	ldr	x10, [x20]
	ldr	x11, [x0]
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	lsl	x12, x9, #2
	ldr	w13, [x10, x12]
	ldr	w14, [x11, x12]
	orr	w13, w14, w13
	str	w13, [x11, x12]
	add	x9, x9, #1
	ldrsw	x12, [x8]
	cmp	x9, x12
	b.lt	LBB0_15
LBB0_16:
	ldr	w8, [x20, #8]
	ldr	w9, [x0, #8]
	orr	w8, w9, w8
	str	w8, [x0, #8]
LBB0_17:
	ldp	x8, x9, [x19]
	cmp	x8, x9
	b.le	LBB0_19
; %bb.18:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_tbm_lossify
LBB0_19:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_WORDS_PER_CHUNK,4,2            ; @WORDS_PER_CHUNK
	.comm	_BITS_PER_BITMAPWORD,4,2        ; @BITS_PER_BITMAPWORD
	.comm	_WORDS_PER_PAGE,4,2             ; @WORDS_PER_PAGE
	.no_dead_strip	_tbm_union_page
.subsections_via_symbols
