	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function makemask
_makemask:                              ## @makemask
	.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
	movl	%esi, %r13d
	leaq	-44(%rbp), %rsi
	callq	_sa_rawaddr
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r15
	movl	-44(%rbp), %eax
	movq	_CHAR_BIT@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	%edi, %ecx
	imull	%eax, %ecx
	cmpl	%r13d, %ecx
	jl	LBB0_6
## %bb.2:
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jle	LBB0_6
## %bb.3:
	movl	%r13d, %esi
	callq	_MIN
	movl	(%r12), %ecx
	subl	%eax, %ecx
	movl	$-1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	movl	%edx, (%r15)
	cmpl	$2, -44(%rbp)
	jl	LBB0_6
## %bb.4:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	subl	%eax, %r13d
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_MIN
	movl	(%r12), %ecx
	subl	%eax, %ecx
	movl	$-1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	movl	%edx, (%r15,%rbx,4)
	incq	%rbx
	cmpl	-44(%rbp), %ebx
	jl	LBB0_5
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHAR_BIT,4,2                   ## @CHAR_BIT
	.no_dead_strip	_makemask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function makemask
_makemask:                              ; @makemask
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	add	x1, sp, #12
	bl	_sa_rawaddr
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w8, [sp, #12]
Lloh0:
	adrp	x21, _CHAR_BIT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CHAR_BIT@GOTPAGEOFF]
	ldr	w0, [x21]
	mul	w9, w0, w8
	cmp	w9, w19
	b.ge	LBB0_3
LBB0_2:
	mov	w0, #-1
	b	LBB0_8
LBB0_3:
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x1, x19
	bl	_MIN
	ldr	w8, [x21]
	sub	w8, w8, w0
	mov	w22, #-1
	lsl	w8, w22, w8
	str	w8, [x20]
	ldr	w8, [sp, #12]
	cmp	w8, #2
	b.lt	LBB0_7
; %bb.5:
	mov	w23, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sub	w19, w19, w0
	ldr	w0, [x21]
	mov	x1, x19
	bl	_MIN
	ldr	w8, [x21]
	sub	w8, w8, w0
	lsl	w8, w22, w8
	str	w8, [x20, x23, lsl #2]
	ldr	w8, [sp, #12]
	add	x23, x23, #1
	cmp	w23, w8
	b.lt	LBB0_6
LBB0_7:
	mov	w0, #0
LBB0_8:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CHAR_BIT,4,2                   ; @CHAR_BIT
	.no_dead_strip	_makemask
.subsections_via_symbols
