	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_osd_data
_send_osd_data:                         ## @send_osd_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %eax
	movl	4(%rdi), %ecx
	movl	%eax, %edx
	subl	%ecx, %edx
	cmpl	$30720, %edx                    ## imm = 0x7800
	movl	$30720, %ebx                    ## imm = 0x7800
	cmovll	%edx, %ebx
	addl	$8, %ebx
	andl	$-8, %ebx
	je	LBB0_2
## %bb.1:
	movq	_debNormal@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_IBM_MP2_OSD_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	sarl	$3, %ecx
	movq	%r14, %rdi
	movl	$2, %r8d
	callq	_debiwrite
	movl	16(%r14), %edi
	movslq	4(%r14), %rsi
	shlq	$2, %rsi
	addq	8(%r14), %rsi
	movl	%ebx, %edx
	callq	_memcpy
	addl	%ebx, 4(%r14)
	movl	(%r15), %esi
	movq	_IBM_MP2_OSD_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	movl	%ebx, %r8d
	callq	_debiwrite
	movl	(%r14), %eax
	movl	4(%r14), %ecx
LBB0_2:
	cmpl	%eax, %ecx
	jge	LBB0_4
## %bb.3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	$0, (%r14)
	movq	_debNormal@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IBM_MP2_MASK0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$49164, %ecx                    ## imm = 0xC00C
	movl	$2, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_debiwrite                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_debNormal,4,2                  ## @debNormal
	.comm	_IBM_MP2_OSD_ADDR,4,2           ## @IBM_MP2_OSD_ADDR
	.comm	_IBM_MP2_OSD_DATA,4,2           ## @IBM_MP2_OSD_DATA
	.comm	_IBM_MP2_MASK0,4,2              ## @IBM_MP2_MASK0
	.no_dead_strip	_send_osd_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_osd_data
_send_osd_data:                         ; @send_osd_data
	.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
	ldp	w9, w8, [x0]
	mov	w10, #30720
	sub	w11, w9, w8
	cmp	w11, w10
	csel	w10, w11, w10, lt
	add	w10, w10, #8
Lloh0:
	adrp	x21, _debNormal@GOTPAGE
Lloh1:
	ldr	x21, [x21, _debNormal@GOTPAGEOFF]
	ands	w20, w10, #0xfffffff8
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x21]
Lloh2:
	adrp	x9, _IBM_MP2_OSD_ADDR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IBM_MP2_OSD_ADDR@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x9]
	asr	w3, w8, #3
	mov	x0, x19
	mov	w4, #2
	bl	_debiwrite
	ldr	w0, [x19, #16]
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19, #4]
	add	x1, x8, x9, lsl #2
	mov	x2, x20
	bl	_memcpy
	ldr	w8, [x19, #4]
	add	w8, w8, w20
	str	w8, [x19, #4]
	ldr	w1, [x21]
Lloh5:
	adrp	x8, _IBM_MP2_OSD_DATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IBM_MP2_OSD_DATA@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	mov	x4, x20
	bl	_debiwrite
	ldp	w9, w8, [x19]
LBB0_2:
	cmp	w8, w9
	b.ge	LBB0_4
; %bb.3:
	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
LBB0_4:
	str	xzr, [x19]
	ldr	w1, [x21]
Lloh8:
	adrp	x8, _IBM_MP2_MASK0@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IBM_MP2_MASK0@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #49164
	mov	w4, #2
	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
	b	_debiwrite
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_debNormal,4,2                  ; @debNormal
	.comm	_IBM_MP2_OSD_ADDR,4,2           ; @IBM_MP2_OSD_ADDR
	.comm	_IBM_MP2_OSD_DATA,4,2           ; @IBM_MP2_OSD_DATA
	.comm	_IBM_MP2_MASK0,4,2              ; @IBM_MP2_MASK0
	.no_dead_strip	_send_osd_data
.subsections_via_symbols
