	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __nd_btt_create
___nd_btt_create:                       ## @__nd_btt_create
	.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	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %rbx
	movl	(%r14), %ecx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ida_simple_get
	movq	%rax, (%rbx)
	testq	%rax, %rax
	js	LBB0_9
## %bb.2:
	movq	%r13, 8(%rbx)
	testq	%r12, %r12
	je	LBB0_3
## %bb.4:
	movl	(%r14), %edx
	movq	%r12, %rdi
	movl	$16, %esi
	callq	_kmemdup
	movq	%rax, %rcx
	movq	(%rbx), %rax
	testq	%rcx, %rcx
	jne	LBB0_5
## %bb.8:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_ida_simple_remove
LBB0_9:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_10:
	xorl	%r12d, %r12d
LBB0_11:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%ecx, %ecx
LBB0_5:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%rcx, 48(%rbx)
	leaq	24(%rbx), %r12
	movl	8(%r15), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%rax, %rcx
	callq	_dev_set_name
	addq	$4, %r15
	movq	%r15, 40(%rbx)
	movq	_nd_btt_device_type@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	movq	_nd_btt_attribute_groups@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	%r12, %rdi
	callq	_device_initialize
	testq	%r14, %r14
	je	LBB0_11
## %bb.6:
	addq	$16, %rbx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	___nd_attach_ndns
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:
	movl	(%r14), %edi
	addq	$4, %r14
	callq	_dev_name
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_dbg
	movq	%r12, %rdi
	callq	_put_device
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"btt%d.%d"

	.comm	_nd_btt_device_type,4,2         ## @nd_btt_device_type
	.comm	_nd_btt_attribute_groups,4,2    ## @nd_btt_attribute_groups
L_.str.1:                               ## @.str.1
	.asciz	"failed, already claimed by %s\n"

	.no_dead_strip	___nd_btt_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __nd_btt_create
___nd_btt_create:                       ; @__nd_btt_create
	.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	x19, x3
	mov	x22, x2
	mov	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w0, #56
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	ldr	w3, [x24]
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	bl	_ida_simple_get
	str	x0, [x20]
	tbnz	x0, #63, LBB0_5
; %bb.2:
	str	x23, [x20, #8]
	cbz	x22, LBB0_8
; %bb.3:
	ldr	w2, [x24]
	mov	x0, x22
	mov	w1, #16
	bl	_kmemdup
	ldr	x3, [x20]
	cbnz	x0, LBB0_9
; %bb.4:
	mov	x0, x21
	mov	x1, x3
	bl	_ida_simple_remove
LBB0_5:
	mov	x0, x20
	bl	_kfree
LBB0_6:
	mov	x22, #0
LBB0_7:
	mov	x0, x22
	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
LBB0_8:
	mov	x3, x0
	mov	x0, #0
LBB0_9:
	str	x0, [x20, #48]
	add	x22, x20, #24
	ldr	w2, [x21, #8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_set_name
	add	x8, x21, #4
Lloh4:
	adrp	x9, _nd_btt_device_type@GOTPAGE
Lloh5:
	ldr	x9, [x9, _nd_btt_device_type@GOTPAGEOFF]
	stp	x9, x8, [x20, #32]
Lloh6:
	adrp	x8, _nd_btt_attribute_groups@GOTPAGE
Lloh7:
	ldr	x8, [x8, _nd_btt_attribute_groups@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	mov	x0, x22
	bl	_device_initialize
	cbz	x19, LBB0_7
; %bb.10:
	add	x2, x20, #16
	mov	x0, x22
	mov	x1, x19
	bl	___nd_attach_ndns
	cbnz	w0, LBB0_7
; %bb.11:
	ldr	w0, [x19], #4
	bl	_dev_name
	mov	x2, x0
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	x0, x22
	bl	_put_device
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"btt%d.%d"

	.comm	_nd_btt_device_type,4,2         ; @nd_btt_device_type
	.comm	_nd_btt_attribute_groups,4,2    ; @nd_btt_attribute_groups
l_.str.1:                               ; @.str.1
	.asciz	"failed, already claimed by %s\n"

	.no_dead_strip	___nd_btt_create
.subsections_via_symbols
