	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rbcfg_load
_rbcfg_load:                            ## @rbcfg_load
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_rbcfg_check_tmp
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movq	(%rbx,%rcx,8), %r15
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_open
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %r14d
	movq	24(%rbx), %rsi
	movl	16(%rbx), %edx
	movl	%eax, %edi
	callq	_read
	cmpl	16(%rbx), %eax
	jne	LBB0_3
## %bb.4:
	movq	24(%rbx), %rdi
	callq	_get_u32
	movq	_RB_MAGIC_SOFT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.6:
	movq	24(%rbx), %rdi
	addq	$4, %rdi
	callq	_get_u32
	movq	%rax, %r12
	movl	24(%rbx), %edi
	addl	$4, %edi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_put_u32
	movq	24(%rbx), %rdi
	movl	16(%rbx), %esi
	callq	_cyg_ether_crc32
	cmpq	%r12, %rax
	je	LBB0_10
## %bb.7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_8
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	_RB_ERR_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_11
LBB0_3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	_RB_ERR_IO@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_8:
	xorl	%eax, %eax
	callq	_fprintf
	movq	_RB_ERR_INVALID@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %r15d
LBB0_10:
	movl	%r14d, %edi
	callq	_close
LBB0_11:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to open %s\n"

	.comm	_RB_ERR_IO,4,2                  ## @RB_ERR_IO
L_.str.1:                               ## @.str.1
	.asciz	"unable to read from %s\n"

	.comm	_RB_MAGIC_SOFT,8,3              ## @RB_MAGIC_SOFT
L_.str.2:                               ## @.str.2
	.asciz	"invalid configuration\n"

	.comm	_RB_ERR_INVALID,4,2             ## @RB_ERR_INVALID
L_.str.3:                               ## @.str.3
	.asciz	"configuration has CRC error\n"

	.no_dead_strip	_rbcfg_load
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rbcfg_load
_rbcfg_load:                            ; @rbcfg_load
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [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 w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	bl	_rbcfg_check_tmp
	cmp	w0, #0
	cset	w8, eq
	ldr	x21, [x20, w8, uxtw #3]
Lloh0:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_open
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x1, [x20, #24]
	ldr	w2, [x20, #16]
	bl	_read
	ldr	w8, [x20, #16]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.2:
	ldr	x0, [x20, #24]
	bl	_get_u32
Lloh3:
	adrp	x8, _RB_MAGIC_SOFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RB_MAGIC_SOFT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.3:
	ldr	x8, [x20, #24]
	add	x0, x8, #4
	bl	_get_u32
	mov	x21, x0
	ldr	w8, [x20, #24]
	add	w0, w8, #4
	mov	w1, #0
	bl	_put_u32
	ldr	x0, [x20, #24]
	ldr	w1, [x20, #16]
	bl	_cyg_ether_crc32
	mov	w20, #0
	cmp	x0, x21
	b.eq	LBB0_10
; %bb.4:
Lloh6:
	adrp	x8, _stderr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_5:
Lloh11:
	adrp	x8, _stderr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	str	x21, [sp]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
Lloh16:
	adrp	x8, _RB_ERR_IO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RB_ERR_IO@GOTPAGEOFF]
Lloh18:
	ldr	w20, [x8]
	b	LBB0_11
LBB0_6:
Lloh19:
	adrp	x8, _stderr@GOTPAGE
Lloh20:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	str	x21, [sp]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
Lloh24:
	adrp	x8, _RB_ERR_IO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RB_ERR_IO@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh26:
	adrp	x8, _stderr@GOTPAGE
Lloh27:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_8:
	bl	_fprintf
Lloh31:
	adrp	x8, _RB_ERR_INVALID@GOTPAGE
Lloh32:
	ldr	x8, [x8, _RB_ERR_INVALID@GOTPAGEOFF]
LBB0_9:
	ldr	w20, [x8]
LBB0_10:
	mov	x0, x19
	bl	_close
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to open %s\n"

	.comm	_RB_ERR_IO,4,2                  ; @RB_ERR_IO
l_.str.1:                               ; @.str.1
	.asciz	"unable to read from %s\n"

	.comm	_RB_MAGIC_SOFT,8,3              ; @RB_MAGIC_SOFT
l_.str.2:                               ; @.str.2
	.asciz	"invalid configuration\n"

	.comm	_RB_ERR_INVALID,4,2             ; @RB_ERR_INVALID
l_.str.3:                               ; @.str.3
	.asciz	"configuration has CRC error\n"

	.no_dead_strip	_rbcfg_load
.subsections_via_symbols
