	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wined3d_extract_bits
_wined3d_extract_bits:                  ## @wined3d_extract_bits
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edx, %r8d
	movl	%esi, %eax
	movq	_CHAR_BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movl	$-1, %esi
	movl	%r8d, %ecx
	shll	%cl, %esi
	shll	$2, %r10d
	xorl	%edx, %edx
	divl	%r10d
	movl	%eax, %r9d
	movl	%edx, %ecx
	movl	$-1, %edx
	movl	(%rdi,%r9,4), %eax
	shrl	%cl, %eax
	notl	%esi
	andl	%esi, %eax
	leal	(%rcx,%r8), %esi
	cmpl	%r10d, %esi
	jbe	LBB0_2
## %bb.1:
	subl	%ecx, %r10d
	subl	%r10d, %r8d
	movl	%r8d, %ecx
	shll	%cl, %edx
	notl	%edx
	incl	%r9d
	andl	(%rdi,%r9,4), %edx
	movl	%r10d, %ecx
	shll	%cl, %edx
	orl	%edx, %eax
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHAR_BIT,4,2                   ## @CHAR_BIT
	.no_dead_strip	_wined3d_extract_bits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wined3d_extract_bits
_wined3d_extract_bits:                  ; @wined3d_extract_bits
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _CHAR_BIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHAR_BIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w10, w8, #2
	udiv	w9, w1, w10
	msub	w12, w9, w10, w1
	mov	w11, #-1
	lsl	w8, w11, w2
	ldr	w13, [x0, w9, uxtw #2]
	lsr	w13, w13, w12
	bic	w8, w13, w8
	add	w13, w12, w2
	cmp	w13, w10
	b.ls	LBB0_2
; %bb.1:
	sub	w10, w10, w12
	sub	w12, w2, w10
	lsl	w11, w11, w12
	add	w9, w9, #1
	ldr	w9, [x0, w9, uxtw #2]
	bic	w9, w9, w11
	lsl	w9, w9, w10
	orr	w8, w9, w8
LBB0_2:
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CHAR_BIT,4,2                   ; @CHAR_BIT
	.no_dead_strip	_wined3d_extract_bits
.subsections_via_symbols
