	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vulkan_num_miplevels
_vulkan_num_miplevels:                  ## @vulkan_num_miplevels
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	callq	_MAX
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %ecx
	xorl	%eax, %eax
	movl	%ecx, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	incl	%eax
	shrl	%edx
	cmpl	$1, %ecx
	movl	%edx, %ecx
	ja	LBB0_3
## %bb.4:
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vulkan_num_miplevels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vulkan_num_miplevels
_vulkan_num_miplevels:                  ; @vulkan_num_miplevels
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_MAX
	mov	w8, #0
	cbz	w0, LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w8, #1
	lsr	w9, w0, #1
	cmp	w0, #1
	mov	x0, x9
	b.hi	LBB0_1
LBB0_2:
	mov	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vulkan_num_miplevels
.subsections_via_symbols
