	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_write_scale_dim
_shader_write_scale_dim:                ## @shader_write_scale_dim
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movl	%ecx, -120(%rbp)                ## 4-byte Spill
	movss	%xmm0, -116(%rbp)               ## 4-byte Spill
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movb	$0, -112(%rbp)
	leaq	L_.str(%rip), %rdx
	leaq	-112(%rbp), %r14
	movq	%r14, %rdi
	movl	$64, %esi
	movq	%rbx, %rcx
	callq	_snprintf
	movl	%r12d, %edi
	callq	_scale_type_to_str
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_config_set_string
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	$64, %esi
	movq	%rbx, %rcx
	movl	%r13d, %r8d
	callq	_snprintf
	movq	_RARCH_SCALE_ABSOLUTE@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_2
## %bb.1:
	leaq	-112(%rbp), %rsi
	movq	%r15, %rdi
	movl	-120(%rbp), %edx                ## 4-byte Reload
	callq	_config_set_int
	jmp	LBB0_3
LBB0_2:
	leaq	-112(%rbp), %rsi
	movq	%r15, %rdi
	movss	-116(%rbp), %xmm0               ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_config_set_float
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"scale_type_%s%u"

L_.str.1:                               ## @.str.1
	.asciz	"scale_%s%u"

	.comm	_RARCH_SCALE_ABSOLUTE,4,2       ## @RARCH_SCALE_ABSOLUTE
	.no_dead_strip	_shader_write_scale_dim
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_write_scale_dim
_shader_write_scale_dim:                ; @shader_write_scale_dim
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	d9, d8, [sp, #80]               ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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 b8, -72
	.cfi_offset b9, -80
	mov	x21, x4
	mov	x20, x3
	fmov	s8, s0
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	strb	wzr, [sp, #8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w1, #64
	mov	x3, x23
	bl	_snprintf
	mov	x0, x22
	bl	_scale_type_to_str
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_config_set_string
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	w1, #64
	mov	x3, x23
	mov	x4, x21
	bl	_snprintf
Lloh7:
	adrp	x8, _RARCH_SCALE_ABSOLUTE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RARCH_SCALE_ABSOLUTE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	add	x1, sp, #8
	mov	x0, x19
	cmp	w8, w22
	b.ne	LBB0_2
; %bb.1:
	mov	x2, x20
	bl	_config_set_int
	b	LBB0_3
LBB0_2:
	fmov	s0, s8
	bl	_config_set_float
LBB0_3:
	ldr	x8, [sp, #72]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #80]               ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"scale_type_%s%u"

l_.str.1:                               ; @.str.1
	.asciz	"scale_%s%u"

	.comm	_RARCH_SCALE_ABSOLUTE,4,2       ; @RARCH_SCALE_ABSOLUTE
	.no_dead_strip	_shader_write_scale_dim
.subsections_via_symbols
