	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function corrupt_bio_data
_corrupt_bio_data:                      ## @corrupt_bio_data
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_bio_cur_bytes
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_bio_data
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	(%r15), %ecx
	cmpl	%ecx, %r14d
	jb	LBB0_3
## %bb.2:
	movb	4(%r15), %dl
	decl	%ecx
	movb	%dl, (%rax,%rcx)
	movsbl	4(%r15), %r12d
	movl	(%r15), %r15d
	movq	%rbx, %rdi
	callq	_bio_data_dir
	movq	_WRITE@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movl	8(%rbx), %r9d
	leal	(%rdx,%rdx,4), %r8d
	addl	$114, %r8d
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	pushq	%r14
	pushq	(%rbx)
	callq	_DMDEBUG
	addq	$16, %rsp
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Corrupting data bio=%p by writing %u to byte %u (rw=%c bi_rw=%lu bi_sector=%llu cur_bytes=%u)\n"

	.comm	_WRITE,8,3                      ## @WRITE
	.no_dead_strip	_corrupt_bio_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function corrupt_bio_data
_corrupt_bio_data:                      ; @corrupt_bio_data
	.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
	mov	x21, x1
	mov	x20, x0
	bl	_bio_cur_bytes
	mov	x19, x0
	mov	x0, x20
	bl	_bio_data
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x21]
	cmp	w19, w8
	b.hs	LBB0_3
LBB0_2:
	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_3:
	ldrb	w9, [x21, #4]
	sub	w8, w8, #1
	strb	w9, [x0, w8, uxtw]
	ldrsb	w22, [x21, #4]
	ldr	w21, [x21]
	mov	x0, x20
	bl	_bio_data_dir
Lloh0:
	adrp	x8, _WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WRITE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w5, [x20, #8]
	ldr	x6, [x20]
	cmp	x0, x8
	mov	w8, #114
	mov	w9, #119
	csel	w4, w9, w8, eq
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x22
	mov	x3, x21
	mov	x7, 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	_DMDEBUG
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Corrupting data bio=%p by writing %u to byte %u (rw=%c bi_rw=%lu bi_sector=%llu cur_bytes=%u)\n"

	.comm	_WRITE,8,3                      ; @WRITE
	.no_dead_strip	_corrupt_bio_data
.subsections_via_symbols
