	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function awg_generate_instr
_awg_generate_instr:                    ## @awg_generate_instr
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	jle	LBB0_16
## %bb.1:
	movq	%rcx, %r9
	movl	%edi, %r15d
	andl	$1, %r9d
	shlq	$9, %r9
	andl	$1, %edx
	shlq	$8, %rdx
	movq	_AWG_OPCODE_OFFSET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	(%r8), %rdi
	movq	_AWG_MAX_INST@GOTPCREL(%rip), %r10
	leaq	LJTI0_0(%rip), %r14
	movq	_AWG_MAX_ARG@GOTPCREL(%rip), %r11
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movzbl	%sil, %r12d
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	leal	(%rdx,%r12), %eax
	addl	%r9d, %eax
	movl	%r15d, %ebx
	shll	%cl, %ebx
	orl	%eax, %ebx
	andl	$16383, %ebx                    ## imm = 0x3FFF
	movq	8(%r8), %rax
	movq	%rbx, (%rax,%rdi,8)
	movq	(%r8), %rdi
	incq	%rdi
	movq	%rdi, (%r8)
	subq	%r12, %rsi
	jle	LBB0_16
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%r10), %rdi
	jae	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-128(%r15), %ebx
	cmpl	$8, %ebx
	ja	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r14,%rbx,4), %rax
	addq	%r14, %rax
	xorl	%r12d, %r12d
	jmpq	*%rax
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r11), %r12
	andq	%rsi, %r12
	jmp	LBB0_11
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	decq	%rsi
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r11), %r12
	andq	%rsi, %r12
	movl	$129, %r15d
	jmp	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rsi, %r12
	orq	$64, %r12
	andq	(%r11), %r12
	movl	$135, %r15d
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	jmp	LBB0_15
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$130, %r15d
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	jmp	LBB0_15
LBB0_16:
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_3:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_DRM_ERROR
	jmp	LBB0_4
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_15
	.long	L0_0_set_7
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_AWG_MAX_INST,8,3               ## @AWG_MAX_INST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"too many number of instructions\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AWG_MAX_ARG,8,3                ## @AWG_MAX_ARG
L_.str.1:                               ## @.str.1
	.asciz	"instruction %d does not exist\n"

	.comm	_AWG_OPCODE_OFFSET,4,2          ## @AWG_OPCODE_OFFSET
	.no_dead_strip	_awg_generate_instr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function awg_generate_instr
_awg_generate_instr:                    ; @awg_generate_instr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	x1, #1
	b.lt	LBB0_12
; %bb.1:
	lsl	w8, w3, #9
	and	x8, x8, #0x200
	lsl	w9, w2, #8
	and	x9, x9, #0x100
Lloh0:
	adrp	x10, _AWG_OPCODE_OFFSET@GOTPAGE
Lloh1:
	ldr	x10, [x10, _AWG_OPCODE_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	ldr	x11, [x4]
Lloh3:
	adrp	x12, _AWG_MAX_INST@GOTPAGE
Lloh4:
	ldr	x12, [x12, _AWG_MAX_INST@GOTPAGEOFF]
Lloh5:
	adrp	x13, lJTI0_0@PAGE
Lloh6:
	add	x13, x13, lJTI0_0@PAGEOFF
Lloh7:
	adrp	x14, _AWG_MAX_ARG@GOTPAGE
Lloh8:
	ldr	x14, [x14, _AWG_MAX_ARG@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x9, #0
	mov	x8, #0
	ldr	x15, [x14]
	and	x15, x15, x1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	x1, x1, x15
	add	w15, w9, w15
	add	w15, w15, w8
	lsl	w16, w0, w10
	orr	w15, w15, w16
	and	x15, x15, #0x3fff
	ldr	x16, [x4, #8]
	str	x15, [x16, x11, lsl #3]
	ldr	x11, [x4]
	add	x11, x11, #1
	str	x11, [x4]
	cmp	x1, #0
	b.le	LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x15, [x12]
	cmp	x11, x15
	b.hs	LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w16, w0, #128
	cmp	w16, #8
	b.hi	LBB0_16
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x15, #0
	adr	x17, LBB0_2
	ldrb	w2, [x13, x16]
	add	x17, x17, x2, lsl #2
	br	x17
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	and	x15, x1, #0xff
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	subs	x1, x1, #1
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x9, #0
	mov	x8, #0
	ldr	x15, [x14]
	and	x15, x15, x1
	mov	w0, #129
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x9, #0
	mov	x8, #0
	orr	x15, x1, #0x40
	ldr	x16, [x14]
	and	x15, x16, x15
	mov	w0, #135
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x15, #0
	mov	w0, #130
	b	LBB0_3
LBB0_12:
	mov	w0, #0
	b	LBB0_15
LBB0_13:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
LBB0_14:
	bl	_DRM_ERROR
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_16:
	str	x0, [sp]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_14
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_AWG_MAX_INST,8,3               ; @AWG_MAX_INST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"too many number of instructions\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AWG_MAX_ARG,8,3                ; @AWG_MAX_ARG
l_.str.1:                               ; @.str.1
	.asciz	"instruction %d does not exist\n"

	.comm	_AWG_OPCODE_OFFSET,4,2          ; @AWG_OPCODE_OFFSET
	.no_dead_strip	_awg_generate_instr
.subsections_via_symbols
