	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rbcfg_find_tag
_rbcfg_find_tag:                        ## @rbcfg_find_tag
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movl	8(%rdi), %r12d
	movq	_RB_ERR_NOTFOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	addl	$-8, %r12d
	cmpl	$3, %r12d
	jb	LBB0_10
## %bb.1:
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rbx
	addq	$8, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_get_u16
	movq	%rax, %r15
	movl	%r12d, %eax
	andl	$-2, %eax
	cmpl	$2, %eax
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	2(%rbx), %rdi
	callq	_get_u16
	movq	_RB_ID_TERMINATOR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	$-4, %r12d
	cmpq	%r12, %r15
	jg	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$4, %rbx
	cmpq	%r13, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	%r15, %rbx
	subl	%r15d, %r12d
	cmpl	$2, %r12d
	ja	LBB0_2
	jmp	LBB0_9
LBB0_4:
	movq	_RB_ERR_NOTWANTED@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_9
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	xorl	%r14d, %r14d
LBB0_9:
	movq	_RB_ERR_NOTFOUND@GOTPCREL(%rip), %rax
LBB0_10:
	cmpl	%r14d, (%rax)
	jne	LBB0_12
## %bb.11:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdx
	callq	_fprintf
LBB0_12:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RB_ERR_NOTFOUND,4,2            ## @RB_ERR_NOTFOUND
	.comm	_RB_ID_TERMINATOR,8,3           ## @RB_ID_TERMINATOR
	.comm	_RB_ERR_NOTWANTED,4,2           ## @RB_ERR_NOTWANTED
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no tag found with id=%u\n"

	.no_dead_strip	_rbcfg_find_tag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rbcfg_find_tag
_rbcfg_find_tag:                        ; @rbcfg_find_tag
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	ldr	w8, [x0, #8]
Lloh0:
	adrp	x25, _RB_ERR_NOTFOUND@GOTPAGE
Lloh1:
	ldr	x25, [x25, _RB_ERR_NOTFOUND@GOTPAGEOFF]
	ldr	w20, [x25]
	sub	w27, w8, #8
	cmp	w27, #3
	b.lo	LBB0_9
; %bb.1:
	mov	x21, x3
	mov	x22, x2
	ldr	x8, [x0]
	add	x23, x8, #8
Lloh2:
	adrp	x26, _RB_ID_TERMINATOR@GOTPAGE
Lloh3:
	ldr	x26, [x26, _RB_ID_TERMINATOR@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_get_u16
	and	w8, w27, #0xfffffffe
	cmp	w8, #2
	b.eq	LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x24, x0
	add	x0, x23, #2
	bl	_get_u16
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w8, w27, #4
	cmp	x24, x8
	b.gt	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x23, #4
	cmp	x0, x19
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x9, x24
	sub	w27, w8, w24
	cmp	w27, #2
	b.hi	LBB0_2
	b	LBB0_9
LBB0_7:
Lloh4:
	adrp	x8, _RB_ERR_NOTWANTED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RB_ERR_NOTWANTED@GOTPAGEOFF]
Lloh6:
	ldr	w20, [x8]
	b	LBB0_9
LBB0_8:
	mov	w20, #0
	str	x24, [x22]
	str	x9, [x21]
LBB0_9:
	ldr	w8, [x25]
	cmp	w8, w20
	b.ne	LBB0_11
; %bb.10:
Lloh7:
	adrp	x8, _stderr@GOTPAGE
Lloh8:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_fprintf
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_RB_ERR_NOTFOUND,4,2            ; @RB_ERR_NOTFOUND
	.comm	_RB_ID_TERMINATOR,8,3           ; @RB_ID_TERMINATOR
	.comm	_RB_ERR_NOTWANTED,4,2           ; @RB_ERR_NOTWANTED
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no tag found with id=%u\n"

	.no_dead_strip	_rbcfg_find_tag
.subsections_via_symbols
