	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hb_audio_bitrate_find_closest
_hb_audio_bitrate_find_closest:         ## @hb_audio_bitrate_find_closest
	.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
	movl	%edi, %r14d
	testl	%edi, %edi
	jle	LBB0_4
## %bb.1:
	movq	_hb_audio_bitrates_first_item@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ebx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	callq	_hb_audio_bitrate_get_next
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %ecx
	cmpl	%r14d, %ecx
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmovll	%ecx, %ebx
	movq	%rax, %rdi
	jmp	LBB0_2
LBB0_4:
	movl	%r14d, %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hb_audio_bitrates_first_item,8,3 ## @hb_audio_bitrates_first_item
	.no_dead_strip	_hb_audio_bitrate_find_closest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hb_audio_bitrate_find_closest
_hb_audio_bitrate_find_closest:         ; @hb_audio_bitrate_find_closest
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _hb_audio_bitrates_first_item@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hb_audio_bitrates_first_item@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w19, [x8]
	mov	x0, #0
	bl	_hb_audio_bitrate_get_next
	cbz	x0, LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x0]
	cmp	w8, w20
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	csel	w19, w8, w19, lt
	bl	_hb_audio_bitrate_get_next
	cbnz	x0, LBB0_2
	b	LBB0_5
LBB0_4:
	mov	x19, x20
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_hb_audio_bitrates_first_item,8,3 ; @hb_audio_bitrates_first_item
	.no_dead_strip	_hb_audio_bitrate_find_closest
.subsections_via_symbols
