	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iput                           ## -- Begin function iput
	.p2align	4, 0x90
_iput:                                  ## @iput
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_part_ofs@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_sblock@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_cgtod
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_fsbtodb
	addq	%rax, %rbx
	movl	12(%r15), %ecx
	movq	_disk@GOTPCREL(%rip), %rdi
	movq	_acg@GOTPCREL(%rip), %r14
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_bread
	movq	(%r14), %rax
	movq	_CG_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	decl	8(%r14)
	movq	%r14, %rdi
	callq	_cg_inosused
	movl	%eax, %edi
	movl	%r12d, %esi
	callq	_setbit
	movq	_disk@GOTPCREL(%rip), %r13
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_cgput
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%r13), %rdx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_3:
	decl	8(%r15)
	movq	_fscs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	decl	(%rax)
	movq	_disk@GOTPCREL(%rip), %rbx
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_getinode
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx
	movl	%eax, (%rcx)
	movq	_disk@GOTPCREL(%rip), %rdi
	callq	_putinode
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	$31, %edi
	callq	_exit
LBB0_6:
	movq	(%rbx), %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	$32, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_disk,8,3                       ## @disk
	.comm	_part_ofs,8,3                   ## @part_ofs
	.comm	_sblock,16,3                    ## @sblock
	.comm	_acg,16,3                       ## @acg
	.comm	_CG_MAGIC,8,3                   ## @CG_MAGIC
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"iput: cgput: %s"

	.comm	_fscs,8,3                       ## @fscs
L_.str.2:                               ## @.str.2
	.asciz	"iput: %s\n"

	.comm	_FS_UFS1_MAGIC,8,3              ## @FS_UFS1_MAGIC
L_str:                                  ## @str
	.asciz	"cg 0: bad magic number"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iput                           ; -- Begin function iput
	.p2align	2
_iput:                                  ; @iput
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _part_ofs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _part_ofs@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
Lloh3:
	adrp	x21, _sblock@GOTPAGE
Lloh4:
	ldr	x21, [x21, _sblock@GOTPAGEOFF]
	mov	x0, x21
	mov	w1, #0
	bl	_cgtod
	mov	x1, x0
	mov	x0, x21
	bl	_fsbtodb
	add	x1, x0, x22
	ldr	w3, [x21, #12]
Lloh5:
	adrp	x0, _disk@GOTPAGE
Lloh6:
	ldr	x0, [x0, _disk@GOTPAGEOFF]
Lloh7:
	adrp	x22, _acg@GOTPAGE
Lloh8:
	ldr	x22, [x22, _acg@GOTPAGEOFF]
	mov	x2, x22
	bl	_bread
	ldr	x8, [x22]
Lloh9:
	adrp	x9, _CG_MAGIC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CG_MAGIC@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	ldr	w8, [x22, #8]
	sub	w8, w8, #1
	str	w8, [x22, #8]
	mov	x0, x22
	bl	_cg_inosused
	mov	x1, x20
	bl	_setbit
Lloh12:
	adrp	x23, _disk@GOTPAGE
Lloh13:
	ldr	x23, [x23, _disk@GOTPAGEOFF]
	mov	x0, x23
	mov	x1, x22
	bl	_cgput
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x2, [x23]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_3:
	ldr	w8, [x21, #8]
	sub	w8, w8, #1
	str	w8, [x21, #8]
Lloh16:
	adrp	x8, _fscs@GOTPAGE
Lloh17:
	ldr	x8, [x8, _fscs@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
Lloh19:
	adrp	x21, _disk@GOTPAGE
Lloh20:
	ldr	x21, [x21, _disk@GOTPAGEOFF]
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, x20
	bl	_getinode
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.4:
	ldr	w8, [x19]
	ldr	x9, [sp, #8]
	str	w8, [x9]
Lloh21:
	adrp	x0, _disk@GOTPAGE
Lloh22:
	ldr	x0, [x0, _disk@GOTPAGEOFF]
	bl	_putinode
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
Lloh23:
	adrp	x0, l_str@PAGE
Lloh24:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w0, #31
	bl	_exit
LBB0_6:
	ldr	x8, [x21]
	str	x8, [sp]
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	mov	w0, #32
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_disk,8,3                       ; @disk
	.comm	_part_ofs,8,3                   ; @part_ofs
	.comm	_sblock,16,3                    ; @sblock
	.comm	_acg,16,3                       ; @acg
	.comm	_CG_MAGIC,8,3                   ; @CG_MAGIC
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"iput: cgput: %s"

	.comm	_fscs,8,3                       ; @fscs
l_.str.2:                               ; @.str.2
	.asciz	"iput: %s\n"

	.comm	_FS_UFS1_MAGIC,8,3              ; @FS_UFS1_MAGIC
l_str:                                  ; @str
	.asciz	"cg 0: bad magic number"

.subsections_via_symbols
