	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chooseImage
_chooseImage:                           ## @chooseImage
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testl	%edi, %edi
	jle	LBB0_1
## %bb.2:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	imull	%edx, %ecx
	movl	%edi, %r9d
	cmpl	$1, %edi
	jne	LBB0_4
## %bb.3:
	xorl	%r11d, %r11d
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_4:
	movl	%r9d, %r10d
	andl	$-2, %r10d
	leaq	8(%rsi), %rdi
	xorl	%r11d, %r11d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-8(%rdi), %rax
	movl	-4(%rdi), %edx
	imull	-8(%rdi), %edx
	subl	%ecx, %edx
	movl	%edx, %ebx
	negl	%ebx
	cmovsl	%edx, %ebx
	cmpl	%r8d, %ebx
	cmovgel	%r8d, %ebx
	cmovgeq	%r14, %rax
	movl	4(%rdi), %edx
	imull	(%rdi), %edx
	subl	%ecx, %edx
	movl	%edx, %r8d
	negl	%r8d
	cmovsl	%edx, %r8d
	cmpl	%ebx, %r8d
	cmovgel	%ebx, %r8d
	cmovlq	%rdi, %rax
	addq	$2, %r11
	addq	$16, %rdi
	movq	%rax, %r14
	cmpq	%r11, %r10
	jne	LBB0_5
LBB0_6:
	testb	$1, %r9b
	je	LBB0_8
## %bb.7:
	movl	4(%rsi,%r11,8), %edx
	imull	(%rsi,%r11,8), %edx
	subl	%ecx, %edx
	movl	%edx, %ecx
	negl	%ecx
	cmovsl	%edx, %ecx
	leaq	(%rsi,%r11,8), %rdx
	cmpl	%r8d, %ecx
	cmovlq	%rdx, %rax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.no_dead_strip	_chooseImage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chooseImage
_chooseImage:                           ; @chooseImage
	.cfi_startproc
; %bb.0:
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x8, x0
	mov	x0, #0
Lloh0:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mul	w10, w3, w2
	mov	w8, w8
	neg	w10, w10
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w11, w12, [x1]
	madd	w11, w12, w11, w10
	cmp	w11, #0
	cneg	w11, w11, mi
	cmp	w11, w9
	csel	w9, w11, w9, lt
	csel	x0, x1, x0, lt
	add	x1, x1, #8
	subs	x8, x8, #1
	b.ne	LBB0_2
; %bb.3:
	ret
LBB0_4:
	mov	x0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.no_dead_strip	_chooseImage
.subsections_via_symbols
