	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function ransac_update_num_iters
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_2:
	.quad	0x0000000000000000              ## double 0
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_1:
	.quad	0x8000000000000000              ## double -0
	.quad	0x8000000000000000              ## double -0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ransac_update_num_iters:               ## @ransac_update_num_iters
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	movsd	%xmm1, -24(%rbp)                ## 8-byte Spill
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	xorps	%xmm1, %xmm1
	callq	_av_clipd
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	xorps	%xmm1, %xmm1
	movsd	-24(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	callq	_av_clipd
	movsd	%xmm0, -24(%rbp)                ## 8-byte Spill
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	subsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	movq	_DBL_MIN@GOTPCREL(%rip), %rbx
	movsd	(%rbx), %xmm1                   ## xmm1 = mem[0],zero
	callq	_FFMAX
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	subsd	-24(%rbp), %xmm0                ## 8-byte Folded Reload
	movl	$3, %edi
	callq	_pow
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	movsd	(%rbx), %xmm0                   ## xmm0 = mem[0],zero
	xorl	%eax, %eax
	movsd	%xmm1, -24(%rbp)                ## 8-byte Spill
	ucomisd	%xmm1, %xmm0
	ja	LBB0_5
## %bb.1:
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_log
	movaps	%xmm0, -48(%rbp)                ## 16-byte Spill
	movsd	-24(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_log
	ucomisd	LCPI0_2(%rip), %xmm0
	jae	LBB0_2
## %bb.3:
	movapd	LCPI0_1(%rip), %xmm1            ## xmm1 = [-0.0E+0,-0.0E+0]
	movapd	-48(%rbp), %xmm4                ## 16-byte Reload
	movapd	%xmm4, %xmm2
	xorpd	%xmm1, %xmm2
	cvtsi2sd	%r14d, %xmm3
	xorpd	%xmm0, %xmm1
	mulsd	%xmm3, %xmm1
	ucomisd	%xmm1, %xmm2
	movl	%r14d, %eax
	jae	LBB0_5
## %bb.4:
	divsd	%xmm0, %xmm4
	movapd	%xmm4, %xmm0
	callq	_round
	jmp	LBB0_5
LBB0_2:
	movl	%r14d, %eax
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DBL_MIN,8,3                    ## @DBL_MIN
	.no_dead_strip	_ransac_update_num_iters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ransac_update_num_iters
_ransac_update_num_iters:               ; @ransac_update_num_iters
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset b8, -40
	.cfi_offset b9, -48
	.cfi_offset b10, -56
	.cfi_offset b11, -64
	mov	x19, x0
	fmov	d8, d1
	fmov	d11, #1.00000000
	movi	d1, #0000000000000000
	fmov	d2, #1.00000000
	bl	_av_clipd
	fmov	d9, d0
	movi	d1, #0000000000000000
	fmov	d2, #1.00000000
	fmov	d0, d8
	bl	_av_clipd
	fmov	d10, d0
	fsub	d0, d11, d9
Lloh0:
	adrp	x20, _DBL_MIN@GOTPAGE
Lloh1:
	ldr	x20, [x20, _DBL_MIN@GOTPAGEOFF]
	ldr	d1, [x20]
	bl	_FFMAX
	fmov	d8, d0
	fsub	d0, d11, d10
	mov	w0, #3
	bl	_pow
	fsub	d9, d11, d0
	ldr	d0, [x20]
	fcmp	d9, d0
	b.pl	LBB0_2
; %bb.1:
	mov	w19, #0
	b	LBB0_4
LBB0_2:
	fmov	d0, d8
	bl	_log
	fmov	d8, d0
	fmov	d0, d9
	bl	_log
	fcmp	d0, #0.0
	fneg	d1, d8
	scvtf	d2, w19
	fneg	d3, d0
	fmul	d2, d2, d3
	fccmp	d2, d1, #0, lt
	b.ls	LBB0_4
; %bb.3:
	fdiv	d0, d8, d0
	bl	_round
	mov	x19, x0
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DBL_MIN,8,3                    ; @DBL_MIN
	.no_dead_strip	_ransac_update_num_iters
.subsections_via_symbols
