	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nd_btt_probe                   ## -- Begin function nd_btt_probe
	.p2align	4, 0x90
_nd_btt_probe:                          ## @nd_btt_probe
	.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, %rbx
	movq	%rdi, %r14
	movl	4(%rsi), %edi
	callq	_to_nd_region
	cmpq	$0, 8(%rbx)
	jne	LBB0_6
## %bb.1:
	movq	%rax, %r15
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	jae	LBB0_6
## %bb.2:
	leaq	4(%rbx), %r13
	movq	%r13, %rdi
	callq	_nvdimm_bus_lock
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	callq	___nd_btt_create
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_nvdimm_bus_unlock
	testq	%r15, %r15
	je	LBB0_9
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_devm_kzalloc
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_to_nd_btt
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	___nd_btt_probe
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_dev_dbg
	testl	%r12d, %r12d
	jns	LBB0_8
## %bb.5:
	movq	%r15, %rdi
	callq	_to_nd_btt
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_nd_detach_ndns
	movq	%r15, %rdi
	callq	_put_device
	jmp	LBB0_8
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
LBB0_7:
	subl	(%rax), %r12d
LBB0_8:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_10:
	movq	%r15, %rdi
	callq	_dev_name
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_dev_dbg
	xorl	%r12d, %r12d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"btt: %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"<none>"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nd_btt_probe                   ; -- Begin function nd_btt_probe
	.p2align	2
_nd_btt_probe:                          ; @nd_btt_probe
	.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	x20, x1
	mov	x19, x0
	mov	x22, x1
	ldr	w0, [x22, #4]!
	bl	_to_nd_region
	ldur	x8, [x22, #4]
	cbnz	x8, LBB0_6
; %bb.1:
	ldr	w8, [x20]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hs	LBB0_6
; %bb.2:
	mov	x21, x0
	mov	x0, x22
	bl	_nvdimm_bus_lock
	mov	x0, x21
	mov	w1, #0
	mov	x2, #0
	mov	x3, x20
	bl	___nd_btt_create
	mov	x21, x0
	mov	x0, x22
	bl	_nvdimm_bus_unlock
	cbz	x21, LBB0_9
; %bb.3:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #4
	bl	_devm_kzalloc
	mov	x22, x0
	mov	x0, x21
	bl	_to_nd_btt
	mov	x1, x20
	mov	x2, x22
	bl	___nd_btt_probe
	mov	x20, x0
	cbz	w0, LBB0_10
; %bb.4:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	tbz	w20, #31, LBB0_8
; %bb.5:
	mov	x0, x21
	bl	_to_nd_btt
	mov	x1, x0
	mov	x0, x21
	bl	_nd_detach_ndns
	mov	x0, x21
	bl	_put_device
	b	LBB0_8
LBB0_6:
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_8:
	mov	x0, x20
	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_9:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
LBB0_10:
	mov	x0, x21
	bl	_dev_name
	mov	x2, x0
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"btt: %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"<none>"

.subsections_via_symbols
