	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sbput                          ## -- Begin function sbput
	.p2align	4, 0x90
_sbput:                                 ## @sbput
	.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	%edx, %r14d
	movq	%rsi, %r15
	movl	%edi, -44(%rbp)
	movq	8(%rsi), %rdx
	movq	_use_pwrite@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	leaq	-44(%rbp), %rdi
	callq	_ffs_sbput
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.3:
	movq	(%r15), %rcx
	movq	8(%r15), %rdx
	movq	$0, (%r15)
	jle	LBB0_4
## %bb.7:
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %r12
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_cgsblock
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_fsbtodb
	movl	%eax, %edi
	callq	_dbtob
	movq	%rax, 8(%r15)
	movl	(%r13), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_ffs_sbput
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_8 Depth=1
	incl	%ebx
	cmpl	%ebx, %r14d
	jne	LBB0_8
## %bb.6:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_2:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_9:
	movl	$-1, %eax
LBB0_10:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
LBB0_11:
	movq	%rdx, 8(%r15)
	movq	%rcx, (%r15)
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_use_pwrite,4,2                 ## @use_pwrite
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sbput                          ; -- Begin function sbput
	.p2align	2
_sbput:                                 ; @sbput
	.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, x2
	mov	x19, x1
	str	w0, [sp, #12]
	ldr	x2, [x1, #8]
Lloh0:
	adrp	x22, _use_pwrite@GOTPAGE
Lloh1:
	ldr	x22, [x22, _use_pwrite@GOTPAGEOFF]
	ldr	w3, [x22]
	add	x0, sp, #12
	bl	_ffs_sbput
	cbnz	w0, LBB0_10
; %bb.1:
	cbz	w20, LBB0_7
; %bb.2:
	ldp	x24, x23, [x19]
	str	xzr, [x19]
	cmp	w20, #1
	b.lt	LBB0_6
; %bb.3:
	mov	w21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_cgsblock
	mov	x1, x0
	mov	x0, x19
	bl	_fsbtodb
	bl	_dbtob
	mov	x2, x0
	str	x0, [x19, #8]
	ldr	w3, [x22]
	add	x0, sp, #12
	mov	x1, x19
	bl	_ffs_sbput
	cbnz	w0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w21, #1
	cmp	w20, w21
	b.ne	LBB0_4
LBB0_6:
	mov	w0, #0
	b	LBB0_9
LBB0_7:
	mov	w0, #0
	b	LBB0_10
LBB0_8:
	mov	w0, #-1
LBB0_9:
	stp	x24, x23, [x19]
LBB0_10:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_use_pwrite,4,2                 ; @use_pwrite
.subsections_via_symbols
