	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_log_data                   ## -- Begin function set_log_data
	.p2align	4, 0x90
_set_log_data:                          ## @set_log_data
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	movq	_binlog_fd@GOTPCREL(%rip), %rax
	movl	%edi, (%rax)
	movq	_binlog_size@GOTPCREL(%rip), %rax
	movq	%rsi, (%rax)
	callq	_load_binlog_headers
	testq	%rax, %rax
	js	LBB0_5
## %bb.1:
	movq	_binlog_check_mode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.2:
	movq	_LogCopyBuffer@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_4
## %bb.3:
	movq	_ULOG_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	$16, %rdi
	callq	_malloc
	movq	%rax, (%rbx)
LBB0_4:
	movq	_log_pos@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_W@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_binlog_fd,4,2                  ## @binlog_fd
	.comm	_binlog_size,8,3                ## @binlog_size
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad binlog headers (fd=%d)\n"

	.comm	_binlog_check_mode,8,3          ## @binlog_check_mode
	.comm	_LogCopyBuffer,8,3              ## @LogCopyBuffer
	.comm	_ULOG_BUFFER_SIZE,8,3           ## @ULOG_BUFFER_SIZE
	.comm	_log_pos,4,2                    ## @log_pos
	.comm	_W,4,2                          ## @W
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_log_data                   ; -- Begin function set_log_data
	.p2align	2
_set_log_data:                          ; @set_log_data
	.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	x19, x0
Lloh0:
	adrp	x8, _binlog_fd@GOTPAGE
Lloh1:
	ldr	x8, [x8, _binlog_fd@GOTPAGEOFF]
Lloh2:
	str	w0, [x8]
Lloh3:
	adrp	x8, _binlog_size@GOTPAGE
Lloh4:
	ldr	x8, [x8, _binlog_size@GOTPAGEOFF]
Lloh5:
	str	x1, [x8]
	bl	_load_binlog_headers
	tbnz	x0, #63, LBB0_4
; %bb.1:
Lloh6:
	adrp	x8, _binlog_check_mode@GOTPAGE
Lloh7:
	ldr	x8, [x8, _binlog_check_mode@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x19, _LogCopyBuffer@GOTPAGE
Lloh10:
	ldr	x19, [x19, _LogCopyBuffer@GOTPAGEOFF]
	ldr	x9, [x19]
	cmp	x8, #0
	ccmp	x9, #0, #0, ne
	b.ne	LBB0_3
; %bb.2:
Lloh11:
	adrp	x8, _ULOG_BUFFER_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ULOG_BUFFER_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	add	x0, x8, #16
	bl	_malloc
	str	x0, [x19]
LBB0_3:
Lloh14:
	adrp	x8, _log_pos@GOTPAGE
Lloh15:
	ldr	x8, [x8, _log_pos@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _W@GOTPAGE
Lloh18:
	ldr	x9, [x9, _W@GOTPAGEOFF]
Lloh19:
	str	w8, [x9]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh20:
	adrp	x8, _stderr@GOTPAGE
Lloh21:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_binlog_fd,4,2                  ; @binlog_fd
	.comm	_binlog_size,8,3                ; @binlog_size
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad binlog headers (fd=%d)\n"

	.comm	_binlog_check_mode,8,3          ; @binlog_check_mode
	.comm	_LogCopyBuffer,8,3              ; @LogCopyBuffer
	.comm	_ULOG_BUFFER_SIZE,8,3           ; @ULOG_BUFFER_SIZE
	.comm	_log_pos,4,2                    ; @log_pos
	.comm	_W,4,2                          ; @W
.subsections_via_symbols
