	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wined3d_bit_scan
_wined3d_bit_scan:                      ## @wined3d_bit_scan
	.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
	bsfl	%ecx, %edx
	movl	$-1, %eax
	cmovnel	%edx, %eax
	btcl	%eax, %ecx
	movl	%ecx, (%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_wined3d_bit_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wined3d_bit_scan
_wined3d_bit_scan:                      ; @wined3d_bit_scan
	.cfi_startproc
; %bb.0:
	ldr	w9, [x0]
	rbit	w8, w9
	clz	w8, w8
	cmp	w9, #0
	csinv	w8, w8, wzr, ne
	mov	w10, #1
	lsl	w10, w10, w8
	eor	w9, w10, w9
	str	w9, [x0]
	mov	x0, x8
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_wined3d_bit_scan
.subsections_via_symbols
