	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_blk_integrity_register         ## -- Begin function blk_integrity_register
	.p2align	4, 0x90
_blk_integrity_register:                ## @blk_integrity_register
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%edi, %edi
	testq	%r15, %r15
	sete	%dil
	callq	_BUG_ON
	cmpb	$0, _blk_integrity_register.seen(%rip)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	callq	_mark_tech_preview
	movb	$1, _blk_integrity_register.seen(%rip)
LBB0_2:
	movq	8(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.7:
	testq	%r14, %r14
	je	LBB0_9
LBB0_8:
	movl	4(%r14), %eax
	movl	28(%r14), %ecx
	movl	%ecx, 28(%rbx)
	movl	24(%r14), %ecx
	movl	%ecx, 24(%rbx)
	movups	8(%r14), %xmm0
	movups	%xmm0, 8(%rbx)
	jmp	LBB0_10
LBB0_3:
	movq	_integrity_cachep@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movq	___GFP_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_kmem_cache_alloc
	movl	$-1, %r12d
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	movq	%rax, %rbx
	movq	%rax, %r13
	addq	$36, %r13
	movq	%r15, %rdi
	callq	_disk_to_dev
	movq	_integrity_ktype@GOTPCREL(%rip), %rsi
	leaq	L_.str.1(%rip), %rcx
	leaq	L_.str.2(%rip), %r8
	movq	%r13, %rdi
	movq	%rax, %rdx
	callq	_kobject_init_and_add
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_integrity_cachep@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_kmem_cache_free
	jmp	LBB0_11
LBB0_6:
	movq	_KOBJ_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_kobject_uevent
	movq	_INTEGRITY_FLAG_READ@GOTPCREL(%rip), %rax
	movq	_INTEGRITY_FLAG_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, (%rbx)
	movq	(%r15), %rdi
	callq	_queue_logical_block_size
	movl	%eax, 32(%rbx)
	movq	%rbx, 8(%r15)
	testq	%r14, %r14
	jne	LBB0_8
LBB0_9:
	movq	_bi_unsupported_name@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:
	movl	%eax, 4(%rbx)
	movq	_BDI_CAP_STABLE_WRITES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rcx
	orl	%eax, (%rcx)
	xorl	%r12d, %r12d
LBB0_11:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_blk_integrity_register.seen,1,2 ## @blk_integrity_register.seen
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DIF/DIX support"

	.comm	_integrity_cachep,4,2           ## @integrity_cachep
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	___GFP_ZERO,4,2                 ## @__GFP_ZERO
	.comm	_integrity_ktype,4,2            ## @integrity_ktype
L_.str.1:                               ## @.str.1
	.asciz	"%s"

L_.str.2:                               ## @.str.2
	.asciz	"integrity"

	.comm	_KOBJ_ADD,4,2                   ## @KOBJ_ADD
	.comm	_INTEGRITY_FLAG_READ,4,2        ## @INTEGRITY_FLAG_READ
	.comm	_INTEGRITY_FLAG_WRITE,4,2       ## @INTEGRITY_FLAG_WRITE
	.comm	_bi_unsupported_name,4,2        ## @bi_unsupported_name
	.comm	_BDI_CAP_STABLE_WRITES,4,2      ## @BDI_CAP_STABLE_WRITES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_blk_integrity_register         ; -- Begin function blk_integrity_register
	.p2align	2
_blk_integrity_register:                ; @blk_integrity_register
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	adrp	x21, _blk_integrity_register.seen@PAGE
	ldrb	w8, [x21, _blk_integrity_register.seen@PAGEOFF]
	tbnz	w8, #0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, #0
	bl	_mark_tech_preview
	mov	w8, #1
	strb	w8, [x21, _blk_integrity_register.seen@PAGEOFF]
LBB0_2:
	ldr	x21, [x19, #8]
	cbz	x21, LBB0_5
; %bb.3:
	cbz	x20, LBB0_10
LBB0_4:
	ldr	w8, [x20, #4]
	ldr	d0, [x20, #24]
	str	d0, [x21, #24]
	ldur	q0, [x20, #8]
	stur	q0, [x21, #8]
	b	LBB0_11
LBB0_5:
Lloh2:
	adrp	x23, _integrity_cachep@GOTPAGE
Lloh3:
	ldr	x23, [x23, _integrity_cachep@GOTPAGEOFF]
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, ___GFP_ZERO@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___GFP_ZERO@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_kmem_cache_alloc
	cbz	x0, LBB0_8
; %bb.6:
	mov	x21, x0
	add	x22, x0, #36
	mov	x0, x19
	bl	_disk_to_dev
	mov	x2, x0
Lloh10:
	adrp	x1, _integrity_ktype@GOTPAGE
Lloh11:
	ldr	x1, [x1, _integrity_ktype@GOTPAGEOFF]
Lloh12:
	adrp	x3, l_.str.1@PAGE
Lloh13:
	add	x3, x3, l_.str.1@PAGEOFF
Lloh14:
	adrp	x4, l_.str.2@PAGE
Lloh15:
	add	x4, x4, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_kobject_init_and_add
	cbz	x0, LBB0_9
; %bb.7:
	ldr	w0, [x23]
	mov	x1, x21
	bl	_kmem_cache_free
LBB0_8:
	mov	w0, #-1
	b	LBB0_12
LBB0_9:
Lloh16:
	adrp	x8, _KOBJ_ADD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _KOBJ_ADD@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_kobject_uevent
Lloh19:
	adrp	x8, _INTEGRITY_FLAG_READ@GOTPAGE
Lloh20:
	ldr	x8, [x8, _INTEGRITY_FLAG_READ@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _INTEGRITY_FLAG_WRITE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _INTEGRITY_FLAG_WRITE@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x21]
	orr	w8, w8, w9
	str	w8, [x21]
	ldr	x0, [x19]
	bl	_queue_logical_block_size
	str	w0, [x21, #32]
	str	x21, [x19, #8]
	cbnz	x20, LBB0_4
LBB0_10:
Lloh25:
	adrp	x8, _bi_unsupported_name@GOTPAGE
Lloh26:
	ldr	x8, [x8, _bi_unsupported_name@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
LBB0_11:
	mov	w0, #0
Lloh28:
	adrp	x9, _BDI_CAP_STABLE_WRITES@GOTPAGE
Lloh29:
	ldr	x9, [x9, _BDI_CAP_STABLE_WRITES@GOTPAGEOFF]
	str	w8, [x21, #4]
Lloh30:
	ldr	w8, [x9]
	ldr	x9, [x19]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_blk_integrity_register.seen,1,2 ; @blk_integrity_register.seen
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DIF/DIX support"

	.comm	_integrity_cachep,4,2           ; @integrity_cachep
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	___GFP_ZERO,4,2                 ; @__GFP_ZERO
	.comm	_integrity_ktype,4,2            ; @integrity_ktype
l_.str.1:                               ; @.str.1
	.asciz	"%s"

l_.str.2:                               ; @.str.2
	.asciz	"integrity"

	.comm	_KOBJ_ADD,4,2                   ; @KOBJ_ADD
	.comm	_INTEGRITY_FLAG_READ,4,2        ; @INTEGRITY_FLAG_READ
	.comm	_INTEGRITY_FLAG_WRITE,4,2       ; @INTEGRITY_FLAG_WRITE
	.comm	_bi_unsupported_name,4,2        ; @bi_unsupported_name
	.comm	_BDI_CAP_STABLE_WRITES,4,2      ; @BDI_CAP_STABLE_WRITES
.subsections_via_symbols
