	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gluebi_updated
_gluebi_updated:                        ## @gluebi_updated
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_devices_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movl	12(%rbx), %esi
	movl	16(%rbx), %edi
	callq	_find_gluebi_nolock
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rcx
	movq	_UBI_STATIC_VOLUME@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.3:
	movl	8(%rbx), %ecx
	movl	%ecx, (%rax)
LBB0_4:
	movq	_devices_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_1:
	movq	_devices_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movl	12(%rbx), %edx
	movl	16(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_err_msg
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_devices_mutex,4,2              ## @devices_mutex
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"got update notification for unknown UBI device %d volume %d"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_UBI_STATIC_VOLUME,8,3          ## @UBI_STATIC_VOLUME
	.no_dead_strip	_gluebi_updated
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gluebi_updated
_gluebi_updated:                        ; @gluebi_updated
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, _devices_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _devices_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	ldp	w1, w0, [x19, #12]
	bl	_find_gluebi_nolock
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _UBI_STATIC_VOLUME@GOTPAGE
Lloh3:
	ldr	x9, [x9, _UBI_STATIC_VOLUME@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x19, #8]
	str	w8, [x0]
LBB0_3:
Lloh5:
	adrp	x0, _devices_mutex@GOTPAGE
Lloh6:
	ldr	x0, [x0, _devices_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh7:
	adrp	x0, _devices_mutex@GOTPAGE
Lloh8:
	ldr	x0, [x0, _devices_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	ldp	w2, w1, [x19, #12]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_err_msg
Lloh11:
	adrp	x8, _ENOENT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_devices_mutex,4,2              ; @devices_mutex
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"got update notification for unknown UBI device %d volume %d"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_UBI_STATIC_VOLUME,8,3          ; @UBI_STATIC_VOLUME
	.no_dead_strip	_gluebi_updated
.subsections_via_symbols
