	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wined3d_texture_get_sub_resource_target
_wined3d_texture_get_sub_resource_target: ## @wined3d_texture_get_sub_resource_target
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_WINED3DUSAGE_LEGACY_CUBEMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rdi)
	je	LBB0_2
## %bb.1:
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	(%rdi)
                                        ## kill: def $eax killed $eax def $rax
	leaq	_wined3d_texture_get_sub_resource_target.cube_targets(%rip), %rcx
	leaq	(%rcx,%rax,4), %rdi
	jmp	LBB0_3
LBB0_2:
	addq	$4, %rdi
LBB0_3:
	movl	(%rdi), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @wined3d_texture_get_sub_resource_target.cube_targets
_wined3d_texture_get_sub_resource_target.cube_targets:
	.long	130                             ## 0x82
	.long	133                             ## 0x85
	.long	129                             ## 0x81
	.long	132                             ## 0x84
	.long	128                             ## 0x80
	.long	131                             ## 0x83

	.comm	_WINED3DUSAGE_LEGACY_CUBEMAP,4,2 ## @WINED3DUSAGE_LEGACY_CUBEMAP
	.no_dead_strip	_wined3d_texture_get_sub_resource_target
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wined3d_texture_get_sub_resource_target
_wined3d_texture_get_sub_resource_target: ; @wined3d_texture_get_sub_resource_target
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0, #8]
Lloh0:
	adrp	x9, _WINED3DUSAGE_LEGACY_CUBEMAP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WINED3DUSAGE_LEGACY_CUBEMAP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x0]
	udiv	w8, w1, w8
Lloh3:
	adrp	x9, _wined3d_texture_get_sub_resource_target.cube_targets@PAGE
Lloh4:
	add	x9, x9, _wined3d_texture_get_sub_resource_target.cube_targets@PAGEOFF
	add	x8, x9, w8, uxtw #2
	ldr	w0, [x8]
	ret
LBB0_2:
	add	x8, x0, #4
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @wined3d_texture_get_sub_resource_target.cube_targets
_wined3d_texture_get_sub_resource_target.cube_targets:
	.long	130                             ; 0x82
	.long	133                             ; 0x85
	.long	129                             ; 0x81
	.long	132                             ; 0x84
	.long	128                             ; 0x80
	.long	131                             ; 0x83

	.comm	_WINED3DUSAGE_LEGACY_CUBEMAP,4,2 ; @WINED3DUSAGE_LEGACY_CUBEMAP
	.no_dead_strip	_wined3d_texture_get_sub_resource_target
.subsections_via_symbols
