	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_modifier
_add_modifier:                          ## @add_modifier
	.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	%edi, %ebx
	testl	%edi, %esi
	je	LBB0_2
## %bb.1:
	movq	_hlsl_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%rdx), %r15d
	movl	4(%rdx), %r12d
	movq	_HLSL_LEVEL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%esi, %edi
	callq	_debug_modifiers
	leaq	L_.str(%rip), %r8
	movl	%r14d, %edi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	%r13d, %ecx
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_hlsl_report_message
	jmp	LBB0_6
LBB0_2:
	movq	_HLSL_MODIFIER_ROW_MAJOR@GOTPCREL(%rip), %rcx
	movq	_HLSL_MODIFIER_COLUMN_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	testl	%esi, %eax
	je	LBB0_5
## %bb.3:
	andl	%ebx, %eax
	je	LBB0_5
## %bb.4:
	movq	_hlsl_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rdx), %eax
	movl	4(%rdx), %esi
	movq	_HLSL_LEVEL_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	L_.str.1(%rip), %r8
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_hlsl_report_message
	jmp	LBB0_6
LBB0_5:
	orl	%esi, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hlsl_ctx,4,2                   ## @hlsl_ctx
	.comm	_HLSL_LEVEL_ERROR,4,2           ## @HLSL_LEVEL_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"modifier '%s' already specified"

	.comm	_HLSL_MODIFIER_ROW_MAJOR,4,2    ## @HLSL_MODIFIER_ROW_MAJOR
	.comm	_HLSL_MODIFIER_COLUMN_MAJOR,4,2 ## @HLSL_MODIFIER_COLUMN_MAJOR
L_.str.1:                               ## @.str.1
	.asciz	"more than one matrix majority keyword"

	.no_dead_strip	_add_modifier
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_modifier
_add_modifier:                          ; @add_modifier
	.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, x0
	tst	w1, w0
	b.eq	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _hlsl_ctx@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hlsl_ctx@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldp	w22, w21, [x2]
Lloh3:
	adrp	x8, _HLSL_LEVEL_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HLSL_LEVEL_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	mov	x0, x1
	bl	_debug_modifiers
                                        ; kill: def $w0 killed $w0 def $x0
Lloh6:
	adrp	x4, l_.str@PAGE
Lloh7:
	add	x4, x4, l_.str@PAGEOFF
	str	x0, [sp]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	b	LBB0_5
LBB0_2:
Lloh8:
	adrp	x8, _HLSL_MODIFIER_ROW_MAJOR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HLSL_MODIFIER_ROW_MAJOR@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _HLSL_MODIFIER_COLUMN_MAJOR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _HLSL_MODIFIER_COLUMN_MAJOR@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
	and	w9, w8, w1
	and	w8, w8, w19
	cmp	w9, #0
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_4
; %bb.3:
	orr	w19, w1, w19
	b	LBB0_6
LBB0_4:
Lloh14:
	adrp	x8, _hlsl_ctx@GOTPAGE
Lloh15:
	ldr	x8, [x8, _hlsl_ctx@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldp	w2, w1, [x2]
Lloh17:
	adrp	x8, _HLSL_LEVEL_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HLSL_LEVEL_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
Lloh20:
	adrp	x4, l_.str.1@PAGE
Lloh21:
	add	x4, x4, l_.str.1@PAGEOFF
LBB0_5:
	bl	_hlsl_report_message
LBB0_6:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_hlsl_ctx,4,2                   ; @hlsl_ctx
	.comm	_HLSL_LEVEL_ERROR,4,2           ; @HLSL_LEVEL_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"modifier '%s' already specified"

	.comm	_HLSL_MODIFIER_ROW_MAJOR,4,2    ; @HLSL_MODIFIER_ROW_MAJOR
	.comm	_HLSL_MODIFIER_COLUMN_MAJOR,4,2 ; @HLSL_MODIFIER_COLUMN_MAJOR
l_.str.1:                               ; @.str.1
	.asciz	"more than one matrix majority keyword"

	.no_dead_strip	_add_modifier
.subsections_via_symbols
