	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_bitmap
_update_bitmap:                         ## @update_bitmap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rdi), %esi
	xorl	%r14d, %r14d
	cmpl	$-1, %esi
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movl	4(%rax), %edi
	callq	_os_seek_file
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	8(%rbx), %rax
	movl	4(%rax), %edi
	leaq	16(%rbx), %rsi
	movl	$4, %edx
	callq	_os_write_file
	cmpl	$4, %eax
	je	LBB0_6
## %bb.4:
	negl	%eax
	movq	8(%rbx), %rcx
	movl	4(%rcx), %edx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printk
	jmp	LBB0_5
LBB0_2:
	negl	%eax
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printk
LBB0_5:
	movl	$1, %r14d
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"do_io - bitmap lseek failed : err = %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"do_io - bitmap update failed, err = %d fd = %d\n"

	.no_dead_strip	_update_bitmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_bitmap
_update_bitmap:                         ; @update_bitmap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	w1, [x0]
	cmn	w1, #1
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8, #4]
	bl	_os_seek_file
	tbnz	w0, #31, LBB0_4
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #4]
	add	x1, x19, #16
	mov	w2, #4
	bl	_os_write_file
	cmp	w0, #4
	b.ne	LBB0_5
LBB0_3:
	mov	w0, #0
	b	LBB0_7
LBB0_4:
	neg	w1, w0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
	neg	w1, w0
	ldr	x8, [x19, #8]
	ldr	w8, [x8, #4]
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_6:
	bl	_printk
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"do_io - bitmap lseek failed : err = %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"do_io - bitmap update failed, err = %d fd = %d\n"

	.no_dead_strip	_update_bitmap
.subsections_via_symbols
