	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ir_sharp_encode
_ir_sharp_encode:                       ## @ir_sharp_encode
	.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	%ecx, %r15d
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdx, -48(%rbp)
	movl	%esi, %r13d
	sarl	$8, %r13d
	movl	%r13d, %edi
	callq	_bitrev8
	movl	%eax, %ebx
	shll	$5, %ebx
	andl	$7936, %ebx                     ## imm = 0x1F00
	movl	%r12d, %edi
	callq	_bitrev8
                                        ## kill: def $eax killed $eax def $rax
	orl	%ebx, %eax
	movq	_SHARP_NBITS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	leal	2(,%rax,4), %r8d
	movq	_ir_sharp_timings@GOTPCREL(%rip), %rdx
	leaq	-48(%rbp), %rdi
	movl	%r15d, %esi
	callq	_ir_raw_gen_pd
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	subl	%eax, %r15d
	movl	%r13d, %edi
	callq	_bitrev8
	movq	%rbx, %r13
	movl	%eax, %ebx
	shll	$5, %ebx
	andl	$7936, %ebx                     ## imm = 0x1F00
	notl	%r12d
	movl	%r12d, %edi
	callq	_bitrev8
                                        ## kill: def $eax killed $eax def $rax
	orl	%ebx, %eax
	movl	(%r13), %ecx
	leal	1(,%rax,4), %r8d
	movq	_ir_sharp_timings@GOTPCREL(%rip), %rdx
	leaq	-48(%rbp), %rdi
	movl	%r15d, %esi
	callq	_ir_raw_gen_pd
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	movq	-48(%rbp), %rax
	subq	%r14, %rax
	shrq	$2, %rax
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ir_sharp_timings,4,2           ## @ir_sharp_timings
	.comm	_SHARP_NBITS,4,2                ## @SHARP_NBITS
	.no_dead_strip	_ir_sharp_encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ir_sharp_encode
_ir_sharp_encode:                       ; @ir_sharp_encode
	.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	x21, x3
	mov	x19, x2
	mov	x20, x1
	str	x2, [sp, #8]
	asr	w22, w1, #8
	mov	x0, x22
	bl	_bitrev8
	lsl	w8, w0, #5
	and	w23, w8, #0x1f00
	mov	x0, x20
	bl	_bitrev8
	orr	w8, w23, w0
Lloh0:
	adrp	x23, _SHARP_NBITS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SHARP_NBITS@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	w4, #2
	bfi	w4, w8, #2, #30
Lloh2:
	adrp	x2, _ir_sharp_timings@GOTPAGE
Lloh3:
	ldr	x2, [x2, _ir_sharp_timings@GOTPAGEOFF]
	add	x0, sp, #8
	mov	x1, x21
	bl	_ir_raw_gen_pd
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_3
; %bb.1:
	sub	w21, w21, w0
	mov	x0, x22
	bl	_bitrev8
	lsl	w8, w0, #5
	and	w22, w8, #0x1f00
	mvn	w0, w20
	bl	_bitrev8
	orr	w8, w22, w0
	ldr	w3, [x23]
	mov	w4, #1
	bfi	w4, w8, #2, #30
Lloh4:
	adrp	x2, _ir_sharp_timings@GOTPAGE
Lloh5:
	ldr	x2, [x2, _ir_sharp_timings@GOTPAGEOFF]
	add	x0, sp, #8
	mov	x1, x21
	bl	_ir_raw_gen_pd
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_3
; %bb.2:
	ldr	x8, [sp, #8]
	sub	x8, x8, x19
	lsr	x0, x8, #2
LBB0_3:
                                        ; kill: def $w0 killed $w0 killed $x0
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ir_sharp_timings,4,2           ; @ir_sharp_timings
	.comm	_SHARP_NBITS,4,2                ; @SHARP_NBITS
	.no_dead_strip	_ir_sharp_encode
.subsections_via_symbols
