	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_rbu_data
_read_rbu_data:                         ## @read_rbu_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movl	%r8d, %r15d
	movq	%rcx, %r12
	movq	_rbu_data@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	movq	_image_type@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_debug
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_3:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_read_rbu_mono_data
	jmp	LBB0_5
LBB0_4:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_read_packet_data
LBB0_5:
	movl	%eax, %ebx
LBB0_6:
	movq	_rbu_data@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rbu_data,4,2                   ## @rbu_data
	.comm	_image_type,4,2                 ## @image_type
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mono"

L_.str.1:                               ## @.str.1
	.asciz	"packet"

L_.str.2:                               ## @.str.2
	.asciz	"read_rbu_data: invalid image type specified\n"

	.no_dead_strip	_read_rbu_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_rbu_data
_read_rbu_data:                         ; @read_rbu_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, x5
	mov	x20, x4
	mov	x21, x3
Lloh0:
	adrp	x0, _rbu_data@GOTPAGE
Lloh1:
	ldr	x0, [x0, _rbu_data@GOTPAGEOFF]
	bl	_spin_lock
Lloh2:
	adrp	x22, _image_type@GOTPAGE
Lloh3:
	ldr	x22, [x22, _image_type@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w0, [x22]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_4
; %bb.2:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
	mov	w19, #0
	b	LBB0_6
LBB0_3:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_read_rbu_mono_data
	b	LBB0_5
LBB0_4:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_read_packet_data
LBB0_5:
	mov	x19, x0
LBB0_6:
Lloh10:
	adrp	x0, _rbu_data@GOTPAGE
Lloh11:
	ldr	x0, [x0, _rbu_data@GOTPAGEOFF]
	bl	_spin_unlock
	mov	x0, x19
	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 AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_rbu_data,4,2                   ; @rbu_data
	.comm	_image_type,4,2                 ; @image_type
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mono"

l_.str.1:                               ; @.str.1
	.asciz	"packet"

l_.str.2:                               ; @.str.2
	.asciz	"read_rbu_data: invalid image type specified\n"

	.no_dead_strip	_read_rbu_data
.subsections_via_symbols
