	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_arb_get_swizzle
_shader_arb_get_swizzle:                ## @shader_arb_get_swizzle
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %ecx
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rdi
	testq	%rsi, %rsi
	cmovneq	%rax, %rdi
	jne	LBB0_2
## %bb.1:
	movq	_WINED3DSP_NOSWIZZLE@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	je	LBB0_7
LBB0_2:
	movl	%ecx, %r8d
	shrl	$2, %r8d
	andl	$3, %r8d
	movl	%ecx, %r9d
	shrl	$4, %r9d
	andl	$3, %r9d
	movl	%ecx, %esi
	shrl	$6, %esi
	andl	$3, %esi
	andl	$3, %ecx
	movb	$46, (%rdx)
	movb	(%rdi,%rcx), %al
	movb	%al, 1(%rdx)
	cmpl	%r8d, %ecx
	jne	LBB0_6
## %bb.3:
	cmpl	%r9d, %ecx
	jne	LBB0_6
## %bb.4:
	cmpl	%esi, %ecx
	jne	LBB0_6
## %bb.5:
	addq	$2, %rdx
	jmp	LBB0_7
LBB0_6:
	movb	(%rdi,%r8), %al
	movb	%al, 2(%rdx)
	movb	(%rdi,%r9), %al
	movb	%al, 3(%rdx)
	movb	(%rdi,%rsi), %al
	movb	%al, 4(%rdx)
	addq	$5, %rdx
LBB0_7:
	movb	$0, (%rdx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"zyxw"

L_.str.1:                               ## @.str.1
	.asciz	"xyzw"

	.comm	_WINED3DSP_NOSWIZZLE,4,2        ## @WINED3DSP_NOSWIZZLE
	.no_dead_strip	_shader_arb_get_swizzle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_arb_get_swizzle
_shader_arb_get_swizzle:                ; @shader_arb_get_swizzle
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh2:
	adrp	x9, l_.str@PAGE
Lloh3:
	add	x9, x9, l_.str@PAGEOFF
	cmp	x1, #0
	csel	x8, x9, x8, ne
	ldr	w12, [x0]
	cbnz	x1, LBB0_3
; %bb.1:
Lloh4:
	adrp	x9, _WINED3DSP_NOSWIZZLE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _WINED3DSP_NOSWIZZLE@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w12, w9
	b.ne	LBB0_3
; %bb.2:
	strb	wzr, [x2]
	ret
LBB0_3:
	ubfx	x9, x12, #2, #2
	ubfx	x10, x12, #4, #2
	ubfx	x11, x12, #6, #2
	and	x12, x12, #0x3
	mov	w13, #46
	strb	w13, [x2]
	ldrb	w13, [x8, x12]
	strb	w13, [x2, #1]
	cmp	w12, w9
	ccmp	w12, w10, #0, eq
	ccmp	w12, w11, #0, eq
	b.eq	LBB0_5
; %bb.4:
	ldrb	w9, [x8, x9]
	strb	w9, [x2, #2]
	ldrb	w9, [x8, x10]
	strb	w9, [x2, #3]
	ldrb	w8, [x8, x11]
	strb	w8, [x2, #4]
	add	x2, x2, #5
	strb	wzr, [x2]
	ret
LBB0_5:
	strb	wzr, [x2, #2]!
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"zyxw"

l_.str.1:                               ; @.str.1
	.asciz	"xyzw"

	.comm	_WINED3DSP_NOSWIZZLE,4,2        ; @WINED3DSP_NOSWIZZLE
	.no_dead_strip	_shader_arb_get_swizzle
.subsections_via_symbols
