	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function callbackfn_rbu
_callbackfn_rbu:                        ## @callbackfn_rbu
	.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	_rbu_data@GOTPCREL(%rip), %rax
	movq	$0, 8(%rax)
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$0, (%rdi)
	je	LBB0_10
## %bb.2:
	movq	_rbu_data@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	_image_type@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.8:
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_debug
	jmp	LBB0_9
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	(%rbx), %edi
	callq	_img_update_realloc
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	movl	4(%r14), %edi
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	callq	_memcpy
	jmp	LBB0_9
LBB0_6:
	xorl	%eax, %eax
	callq	_packet_empty_list
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	callq	_packetize_data
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	xorl	%eax, %eax
	callq	_packet_empty_list
LBB0_9:
	movq	_rbu_data@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
LBB0_10:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_release_firmware               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_rbu_data,16,3                  ## @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	"invalid image type specified.\n"

	.no_dead_strip	_callbackfn_rbu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function callbackfn_rbu
_callbackfn_rbu:                        ; @callbackfn_rbu
	.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
Lloh0:
	adrp	x8, _rbu_data@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rbu_data@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8, #8]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_11
; %bb.2:
Lloh3:
	adrp	x20, _rbu_data@GOTPAGE
Lloh4:
	ldr	x20, [x20, _rbu_data@GOTPAGEOFF]
	mov	x0, x20
	bl	_spin_lock
Lloh5:
	adrp	x21, _image_type@GOTPAGE
Lloh6:
	ldr	x21, [x21, _image_type@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_6
; %bb.3:
	ldr	w0, [x21]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_8
; %bb.4:
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
	b	LBB0_10
LBB0_5:
	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_6:
	ldr	w0, [x19]
	bl	_img_update_realloc
	cbnz	w0, LBB0_10
; %bb.7:
	ldr	w0, [x20, #4]
	ldp	w2, w1, [x19]
	bl	_memcpy
	b	LBB0_10
LBB0_8:
	bl	_packet_empty_list
	ldp	w1, w0, [x19]
	bl	_packetize_data
	cbz	x0, LBB0_10
; %bb.9:
	bl	_packet_empty_list
LBB0_10:
Lloh13:
	adrp	x0, _rbu_data@GOTPAGE
Lloh14:
	ldr	x0, [x0, _rbu_data@GOTPAGEOFF]
	bl	_spin_unlock
LBB0_11:
	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
	b	_release_firmware
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_rbu_data,16,3                  ; @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	"invalid image type specified.\n"

	.no_dead_strip	_callbackfn_rbu
.subsections_via_symbols
