	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wrap_str_to_mode
_wrap_str_to_mode:                      ## @wrap_str_to_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_RARCH_WRAP_BORDER@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_RARCH_WRAP_EDGE@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_RARCH_WRAP_REPEAT@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_RARCH_WRAP_MIRRORED_REPEAT@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.4(%rip), %rdi
	movq	%rbx, %rsi
	callq	_RARCH_WARN
	movq	_RARCH_WRAP_DEFAULT@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"clamp_to_border"

	.comm	_RARCH_WRAP_BORDER,4,2          ## @RARCH_WRAP_BORDER
L_.str.1:                               ## @.str.1
	.asciz	"clamp_to_edge"

	.comm	_RARCH_WRAP_EDGE,4,2            ## @RARCH_WRAP_EDGE
L_.str.2:                               ## @.str.2
	.asciz	"repeat"

	.comm	_RARCH_WRAP_REPEAT,4,2          ## @RARCH_WRAP_REPEAT
L_.str.3:                               ## @.str.3
	.asciz	"mirrored_repeat"

	.comm	_RARCH_WRAP_MIRRORED_REPEAT,4,2 ## @RARCH_WRAP_MIRRORED_REPEAT
L_.str.4:                               ## @.str.4
	.asciz	"Invalid wrapping type %s. Valid ones are: clamp_to_border (default), clamp_to_edge, repeat and mirrored_repeat. Falling back to default.\n"

	.comm	_RARCH_WRAP_DEFAULT,4,2         ## @RARCH_WRAP_DEFAULT
	.no_dead_strip	_wrap_str_to_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wrap_str_to_mode
_wrap_str_to_mode:                      ; @wrap_str_to_mode
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_string_is_equal
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _RARCH_WRAP_BORDER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RARCH_WRAP_BORDER@GOTPAGEOFF]
	b	LBB0_9
LBB0_2:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_string_is_equal
	cbz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _RARCH_WRAP_EDGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RARCH_WRAP_EDGE@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_string_is_equal
	cbz	x0, LBB0_6
; %bb.5:
Lloh10:
	adrp	x8, _RARCH_WRAP_REPEAT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RARCH_WRAP_REPEAT@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_string_is_equal
	cbz	x0, LBB0_8
; %bb.7:
Lloh14:
	adrp	x8, _RARCH_WRAP_MIRRORED_REPEAT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RARCH_WRAP_MIRRORED_REPEAT@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x19
	bl	_RARCH_WARN
Lloh18:
	adrp	x8, _RARCH_WRAP_DEFAULT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RARCH_WRAP_DEFAULT@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"clamp_to_border"

	.comm	_RARCH_WRAP_BORDER,4,2          ; @RARCH_WRAP_BORDER
l_.str.1:                               ; @.str.1
	.asciz	"clamp_to_edge"

	.comm	_RARCH_WRAP_EDGE,4,2            ; @RARCH_WRAP_EDGE
l_.str.2:                               ; @.str.2
	.asciz	"repeat"

	.comm	_RARCH_WRAP_REPEAT,4,2          ; @RARCH_WRAP_REPEAT
l_.str.3:                               ; @.str.3
	.asciz	"mirrored_repeat"

	.comm	_RARCH_WRAP_MIRRORED_REPEAT,4,2 ; @RARCH_WRAP_MIRRORED_REPEAT
l_.str.4:                               ; @.str.4
	.asciz	"Invalid wrapping type %s. Valid ones are: clamp_to_border (default), clamp_to_edge, repeat and mirrored_repeat. Falling back to default.\n"

	.comm	_RARCH_WRAP_DEFAULT,4,2         ; @RARCH_WRAP_DEFAULT
	.no_dead_strip	_wrap_str_to_mode
.subsections_via_symbols
