	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rbcfg_update
_rbcfg_update:                          ## @rbcfg_update
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_rbcfg_ctx@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	24(%rbx), %rdi
	movq	_RB_MAGIC_SOFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_put_u32
	movq	24(%rbx), %rdi
	addq	$4, %rdi
	xorl	%esi, %esi
	callq	_put_u32
	movq	24(%rbx), %rdi
	movl	(%rbx), %esi
	callq	_cyg_ether_crc32
	movq	24(%rbx), %rdi
	addq	$4, %rdi
	movl	%eax, %esi
	callq	_put_u32
	xorl	%eax, %eax
	testl	%r14d, %r14d
	sete	%al
	movq	8(%rbx,%rax,8), %r14
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movq	_O_CREAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	callq	_open
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %r15d
	movq	24(%rbx), %rsi
	movl	(%rbx), %edx
	movl	%eax, %edi
	callq	_write
	cmpl	(%rbx), %eax
	jne	LBB0_3
## %bb.4:
	movl	%r15d, %edi
	callq	_fsync
	xorl	%r14d, %r14d
	jmp	LBB0_5
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_fprintf
	movq	_RB_ERR_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_6
LBB0_3:
	movq	_RB_ERR_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_5:
	movl	%r15d, %edi
	callq	_close
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rbcfg_ctx,8,3                  ## @rbcfg_ctx
	.comm	_RB_MAGIC_SOFT,4,2              ## @RB_MAGIC_SOFT
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to open %s for writing\n"

	.comm	_RB_ERR_IO,4,2                  ## @RB_ERR_IO
	.no_dead_strip	_rbcfg_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rbcfg_update
_rbcfg_update:                          ; @rbcfg_update
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
Lloh0:
	adrp	x8, _rbcfg_ctx@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rbcfg_ctx@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	ldr	x0, [x21, #24]
Lloh3:
	adrp	x8, _RB_MAGIC_SOFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RB_MAGIC_SOFT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_put_u32
	ldr	x8, [x21, #24]
	add	x0, x8, #4
	mov	w1, #0
	bl	_put_u32
	ldr	x0, [x21, #24]
	ldr	w1, [x21]
	bl	_cyg_ether_crc32
	mov	x1, x0
	ldr	x8, [x21, #24]
	add	x0, x8, #4
	bl	_put_u32
	cmp	w19, #0
	mov	w8, #8
	mov	w9, #16
	csel	x8, x9, x8, eq
	ldr	x20, [x21, x8]
Lloh6:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x20
	bl	_open
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x1, [x21, #24]
	ldr	w2, [x21]
	bl	_write
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_fsync
	mov	w20, #0
	b	LBB0_5
LBB0_3:
Lloh12:
	adrp	x8, _stderr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_fprintf
Lloh17:
	adrp	x8, _RB_ERR_IO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RB_ERR_IO@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
	b	LBB0_6
LBB0_4:
Lloh20:
	adrp	x8, _RB_ERR_IO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RB_ERR_IO@GOTPAGEOFF]
Lloh22:
	ldr	w20, [x8]
LBB0_5:
	mov	x0, x19
	bl	_close
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_rbcfg_ctx,8,3                  ; @rbcfg_ctx
	.comm	_RB_MAGIC_SOFT,4,2              ; @RB_MAGIC_SOFT
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to open %s for writing\n"

	.comm	_RB_ERR_IO,4,2                  ; @RB_ERR_IO
	.no_dead_strip	_rbcfg_update
.subsections_via_symbols
