	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_d3d9_texture_flag_auto_gen_mipmap ## -- Begin function d3d9_texture_flag_auto_gen_mipmap
	.p2align	4, 0x90
_d3d9_texture_flag_auto_gen_mipmap:     ## @d3d9_texture_flag_auto_gen_mipmap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_D3DUSAGE_AUTOGENMIPMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	_D3D9_TEXTURE_MIPMAP_DIRTY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rdi)
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D3DUSAGE_AUTOGENMIPMAP,4,2     ## @D3DUSAGE_AUTOGENMIPMAP
	.comm	_D3D9_TEXTURE_MIPMAP_DIRTY,4,2  ## @D3D9_TEXTURE_MIPMAP_DIRTY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_d3d9_texture_flag_auto_gen_mipmap ; -- Begin function d3d9_texture_flag_auto_gen_mipmap
	.p2align	2
_d3d9_texture_flag_auto_gen_mipmap:     ; @d3d9_texture_flag_auto_gen_mipmap
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _D3DUSAGE_AUTOGENMIPMAP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _D3DUSAGE_AUTOGENMIPMAP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _D3D9_TEXTURE_MIPMAP_DIRTY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _D3D9_TEXTURE_MIPMAP_DIRTY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x0, #4]
	orr	w8, w9, w8
	str	w8, [x0, #4]
LBB0_2:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_D3DUSAGE_AUTOGENMIPMAP,4,2     ; @D3DUSAGE_AUTOGENMIPMAP
	.comm	_D3D9_TEXTURE_MIPMAP_DIRTY,4,2  ; @D3D9_TEXTURE_MIPMAP_DIRTY
.subsections_via_symbols
