	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_bulk
_send_bulk:                             ## @send_bulk
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	_KHDISPATCH_CTRL_THRESHOLD@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jge	LBB0_1
## %bb.2:
	callq	_get_handle
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_rpc_pad_bulk
	movl	%r15d, %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_vchiq_queue_bulk_transmit
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_UNUSED_NDEBUG
	movq	_VCHIQ_SUCCESS@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %rbx
	sete	%dil
	callq	_vcos_assert
	movq	_bulk_event@GOTPCREL(%rip), %rdi
	callq	_vcos_event_wait
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_UNUSED_NDEBUG
	movq	_VCOS_SUCCESS@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %rbx
	sete	%dil
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vcos_assert                    ## TAILCALL
LBB0_1:
	movq	%r14, -32(%rbp)
	movq	%rbx, -40(%rbp)
	callq	_get_handle
	leaq	-40(%rbp), %rsi
	movl	%eax, %edi
	movl	$1, %edx
	callq	_vchiq_queue_message
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_UNUSED_NDEBUG
	movq	_VCHIQ_SUCCESS@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %rbx
	sete	%dil
	callq	_vcos_assert
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KHDISPATCH_CTRL_THRESHOLD,8,3  ## @KHDISPATCH_CTRL_THRESHOLD
	.comm	_VCHIQ_SUCCESS,8,3              ## @VCHIQ_SUCCESS
	.comm	_bulk_event,4,2                 ## @bulk_event
	.comm	_VCOS_SUCCESS,8,3               ## @VCOS_SUCCESS
	.no_dead_strip	_send_bulk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_bulk
_send_bulk:                             ; @send_bulk
	.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, x2
	mov	x19, x1
Lloh0:
	adrp	x8, _KHDISPATCH_CTRL_THRESHOLD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KHDISPATCH_CTRL_THRESHOLD@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	b.ge	LBB0_2
; %bb.1:
	bl	_get_handle
	mov	x21, x0
	mov	x0, x20
	bl	_rpc_pad_bulk
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	mov	x3, #0
	bl	_vchiq_queue_bulk_transmit
	mov	x19, x0
	bl	_UNUSED_NDEBUG
Lloh3:
	adrp	x8, _VCHIQ_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VCHIQ_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x19, x8
	cset	w0, eq
	bl	_vcos_assert
Lloh6:
	adrp	x0, _bulk_event@GOTPAGE
Lloh7:
	ldr	x0, [x0, _bulk_event@GOTPAGEOFF]
	bl	_vcos_event_wait
	mov	x19, x0
	bl	_UNUSED_NDEBUG
Lloh8:
	adrp	x8, _VCOS_SUCCESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VCOS_SUCCESS@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x19, x8
	cset	w0, eq
	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
	b	_vcos_assert
LBB0_2:
	stp	x20, x19, [sp]
	bl	_get_handle
	mov	x1, sp
	mov	w2, #1
	bl	_vchiq_queue_message
	mov	x19, x0
	bl	_UNUSED_NDEBUG
Lloh11:
	adrp	x8, _VCHIQ_SUCCESS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VCHIQ_SUCCESS@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x19, x8
	cset	w0, eq
	bl	_vcos_assert
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_KHDISPATCH_CTRL_THRESHOLD,8,3  ; @KHDISPATCH_CTRL_THRESHOLD
	.comm	_VCHIQ_SUCCESS,8,3              ; @VCHIQ_SUCCESS
	.comm	_bulk_event,4,2                 ; @bulk_event
	.comm	_VCOS_SUCCESS,8,3               ; @VCOS_SUCCESS
	.no_dead_strip	_send_bulk
.subsections_via_symbols
