	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dirty_binlog_queue_push        ## -- Begin function dirty_binlog_queue_push
	.p2align	4, 0x90
_dirty_binlog_queue_push:               ## @dirty_binlog_queue_push
	.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
	cmpl	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	%rdi, %rbx
	movl	$1, (%rdi)
	movq	_mutex_dirty_binlog_queue@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_pthread_mutex_lock
	movq	$0, 8(%rbx)
	movq	_dirty_binlog_queue_head@GOTPCREL(%rip), %rax
	movq	_dirty_binlog_queue_tail@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	addq	$8, %rdx
	cmpq	$0, (%rax)
	cmoveq	%rcx, %rdx
	cmoveq	%rax, %rcx
	movq	%rbx, (%rdx)
	movq	%rbx, (%rcx)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pthread_mutex_unlock           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mutex_dirty_binlog_queue,4,2   ## @mutex_dirty_binlog_queue
	.comm	_dirty_binlog_queue_head,8,3    ## @dirty_binlog_queue_head
	.comm	_dirty_binlog_queue_tail,8,3    ## @dirty_binlog_queue_tail
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dirty_binlog_queue_push        ; -- Begin function dirty_binlog_queue_push
	.p2align	2
_dirty_binlog_queue_push:               ; @dirty_binlog_queue_push
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
	mov	w8, #1
	str	w8, [x0]
Lloh0:
	adrp	x20, _mutex_dirty_binlog_queue@GOTPAGE
Lloh1:
	ldr	x20, [x20, _mutex_dirty_binlog_queue@GOTPAGEOFF]
	mov	x0, x20
	bl	_pthread_mutex_lock
Lloh2:
	adrp	x8, _dirty_binlog_queue_head@GOTPAGE
Lloh3:
	ldr	x8, [x8, _dirty_binlog_queue_head@GOTPAGEOFF]
	str	xzr, [x19, #8]
	ldr	x9, [x8]
Lloh4:
	adrp	x10, _dirty_binlog_queue_tail@GOTPAGE
Lloh5:
	ldr	x10, [x10, _dirty_binlog_queue_tail@GOTPAGEOFF]
	ldr	x11, [x10]
	add	x11, x11, #8
	cmp	x9, #0
	csel	x9, x10, x11, eq
	csel	x8, x8, x10, eq
	str	x19, [x9]
	str	x19, [x8]
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pthread_mutex_unlock
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_mutex_dirty_binlog_queue,4,2   ; @mutex_dirty_binlog_queue
	.comm	_dirty_binlog_queue_head,8,3    ; @dirty_binlog_queue_head
	.comm	_dirty_binlog_queue_tail,8,3    ; @dirty_binlog_queue_tail
.subsections_via_symbols
