	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wined3d_texture_get_gl_sample_count
_wined3d_texture_get_gl_sample_count:   ## @wined3d_texture_get_gl_sample_count
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	_WINED3D_MULTISAMPLE_NON_MASKABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.1:
	movq	_CHAR_BIT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.3:
	movq	16(%rdi), %rax
	shlq	$2, %rcx
	movl	(%rax), %edx
	xorl	%esi, %esi
	xorl	%eax, %eax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%eax
	cmpq	%rax, %rcx
	jbe	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	btl	%eax, %edx
	jae	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%esi, 8(%rdi)
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%esi
	jmp	LBB0_7
LBB0_2:
	xorl	%eax, %eax
LBB0_8:
	incl	%eax
LBB0_9:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3D_MULTISAMPLE_NON_MASKABLE,8,3 ## @WINED3D_MULTISAMPLE_NON_MASKABLE
	.comm	_CHAR_BIT,4,2                   ## @CHAR_BIT
	.no_dead_strip	_wined3d_texture_get_gl_sample_count
.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_gl_sample_count
_wined3d_texture_get_gl_sample_count:   ; @wined3d_texture_get_gl_sample_count
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _WINED3D_MULTISAMPLE_NON_MASKABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WINED3D_MULTISAMPLE_NON_MASKABLE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.1:
Lloh3:
	adrp	x8, _CHAR_BIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CHAR_BIT@GOTPAGEOFF]
Lloh5:
	ldrsw	x10, [x8]
	cbz	w10, LBB0_7
; %bb.2:
	mov	w9, #0
	mov	w8, #0
	ldr	x11, [x0, #16]
	lsl	x10, x10, #2
	ldr	w11, [x11]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w8, #1
	cmp	x10, x8
	b.ls	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w12, w11, w8
	tbz	w12, #0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w12, [x0, #8]
	cmp	w12, w9
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w9, w9, #1
	b	LBB0_3
LBB0_7:
	mov	w8, #0
LBB0_8:
	add	w8, w8, #1
LBB0_9:
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3D_MULTISAMPLE_NON_MASKABLE,8,3 ; @WINED3D_MULTISAMPLE_NON_MASKABLE
	.comm	_CHAR_BIT,4,2                   ; @CHAR_BIT
	.no_dead_strip	_wined3d_texture_get_gl_sample_count
.subsections_via_symbols
