	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gxf_compare_field_nb
_gxf_compare_field_nb:                  ## @gxf_compare_field_nb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %rax
	movq	8(%rdi), %r13
	movq	(%rdx), %rcx
	movq	(%rax,%rcx,8), %rcx
	movq	(%rcx), %rsi
	movq	8(%rcx), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movl	8(%rdx), %r15d
	cmpq	%rcx, (%rsi)
	jne	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movl	4(%r13), %esi
	imull	$48000, (%r13), %edx            ## imm = 0xBB80
	movq	_AV_ROUND_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %edi
	callq	_av_rescale_rnd
	movl	%eax, %r15d
	andl	$-2, %r15d
	movq	(%rbx), %rax
	movq	(%r12), %rcx
LBB0_2:
	movq	(%r14), %rdx
	movq	(%rax,%rdx,8), %rax
	movq	(%rax), %rdx
	movq	8(%rax), %rbx
	movl	8(%r14), %eax
	cmpq	%rcx, (%rdx)
	jne	LBB0_4
## %bb.3:
	movl	4(%r13), %esi
	imull	$48000, (%r13), %edx            ## imm = 0xBB80
	movq	_AV_ROUND_UP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %edi
	callq	_av_rescale_rnd
	andl	$-2, %eax
LBB0_4:
	movl	$1, %ecx
	cmpl	%r15d, %eax
	jg	LBB0_7
## %bb.5:
	xorl	%ecx, %ecx
	cmpl	%r15d, %eax
	jne	LBB0_7
## %bb.6:
	movq	(%rbx), %rax
	xorl	%ecx, %ecx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	cmpq	(%rdx), %rax
	setg	%cl
LBB0_7:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AV_ROUND_UP,4,2                ## @AV_ROUND_UP
	.no_dead_strip	_gxf_compare_field_nb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gxf_compare_field_nb
_gxf_compare_field_nb:                  ; @gxf_compare_field_nb
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	ldp	x8, x23, [x0]
	ldr	x9, [x2]
	ldr	x9, [x8, x9, lsl #3]
	ldp	x9, x22, [x9]
Lloh0:
	adrp	x25, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh1:
	ldr	x25, [x25, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
	ldr	x10, [x9]
	ldr	x9, [x25]
	ldr	w19, [x2, #8]
Lloh2:
	adrp	x24, _AV_ROUND_UP@GOTPAGE
Lloh3:
	ldr	x24, [x24, _AV_ROUND_UP@GOTPAGEOFF]
	cmp	x10, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x21, x0
	ldp	w8, w1, [x23]
	mov	w9, #48000
	mul	w2, w8, w9
	ldr	w3, [x24]
	mov	x0, x19
	bl	_av_rescale_rnd
	and	w19, w0, #0xfffffffe
	ldr	x8, [x21]
	ldr	x9, [x25]
LBB0_2:
	ldr	x10, [x20]
	ldr	x8, [x8, x10, lsl #3]
	ldp	x8, x21, [x8]
	ldr	x8, [x8]
	ldr	w0, [x20, #8]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldp	w8, w1, [x23]
	mov	w9, #48000
	mul	w2, w8, w9
	ldr	w3, [x24]
	bl	_av_rescale_rnd
	and	w0, w0, #0xfffffffe
LBB0_4:
	cmp	w0, w19
	b.le	LBB0_6
; %bb.5:
	mov	w0, #1
	b	LBB0_9
LBB0_6:
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x21]
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w0, gt
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AV_ROUND_UP,4,2                ; @AV_ROUND_UP
	.no_dead_strip	_gxf_compare_field_nb
.subsections_via_symbols
