	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pwc_get_size                   ## -- Begin function pwc_get_size
	.p2align	4, 0x90
_pwc_get_size:                          ## @pwc_get_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movq	_PSZ_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_11
## %bb.1:
	movl	(%rdi), %r10d
	movq	_pwc_image_sizes@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	%r8, %rax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rcx
	incq	%rcx
	movq	%rbx, %rax
	cmpq	$1, %rcx
	jbe	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-1(%rax), %rbx
	btl	%ebx, %r10d
	jae	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %ecx
	movq	(%r9,%rcx,8), %r11
	cmpl	%esi, (%r11)
	jg	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%edx, 4(%r11)
	jg	LBB0_2
## %bb.6:
	decl	%eax
	jmp	LBB0_12
LBB0_7:
	movl	(%rdi), %ecx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	btl	%eax, %ecx
	jb	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incl	%eax
	cmpl	%eax, %r8d
	jne	LBB0_8
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PSZ_MAX,4,2                    ## @PSZ_MAX
	.comm	_pwc_image_sizes,8,3            ## @pwc_image_sizes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pwc_get_size                   ; -- Begin function pwc_get_size
	.p2align	2
_pwc_get_size:                          ; @pwc_get_size
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _PSZ_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PSZ_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.1:
	ldr	w8, [x0]
Lloh3:
	adrp	x10, _pwc_image_sizes@GOTPAGE
Lloh4:
	ldr	x10, [x10, _pwc_image_sizes@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	mov	x11, x9
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x13, x12, #1
	mov	x11, x12
	cmp	x13, #1
	b.ls	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	x12, x11, #1
	lsr	w13, w8, w12
	tbz	w13, #0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x13, [x10, w12, uxtw #3]
	ldr	w14, [x13]
	cmp	w14, w1
	b.gt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w13, [x13, #4]
	cmp	w13, w2
	b.gt	LBB0_2
; %bb.6:
	sub	w8, w11, #1
LBB0_7:
	mov	x0, x8
	ret
LBB0_8:
	mov	w8, #0
	ldr	w10, [x0]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w11, w10, w8
	tbnz	w11, #0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	w8, w8, #1
	cmp	w9, w8
	b.ne	LBB0_9
LBB0_11:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PSZ_MAX,4,2                    ; @PSZ_MAX
	.comm	_pwc_image_sizes,8,3            ; @pwc_image_sizes
.subsections_via_symbols
