	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function nxt200x_attach
LCPI0_0:
	.long	4                               ## 0x4
	.long	2                               ## 0x2
	.long	17                              ## 0x11
	.long	32                              ## 0x20
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_nxt200x_attach
	.p2align	4, 0x90
_nxt200x_attach:                        ## @nxt200x_attach
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	pxor	%xmm0, %xmm0
	movdqa	%xmm0, -64(%rbp)
	movl	$0, -48(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%r15, 40(%rbx)
	movq	%r14, 32(%rbx)
	movq	$0, 24(%rbx)
	leaq	-64(%rbp), %r14
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	movl	$5, %ecx
	callq	_nxt200x_readbytes
	leaq	L_.str(%rip), %rdi
	movl	$5, %esi
	movq	%r14, %rdx
	callq	_dprintk
	movl	-64(%rbp), %eax
	cmpl	$4, %eax
	je	LBB0_2
## %bb.3:
	cmpl	$5, %eax
	jne	LBB0_9
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	movl	$128, %eax
	jmp	LBB0_5
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	movl	$129, %eax
LBB0_5:
	movl	%eax, (%rbx)
	callq	_pr_info
	movl	(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_10
## %bb.6:
	cmpl	$129, %eax
	jne	LBB0_9
## %bb.7:
	movdqa	-64(%rbp), %xmm0
	psubd	LCPI0_0(%rip), %xmm0
	ptest	%xmm0, %xmm0
	jne	LBB0_9
## %bb.8:
	cmpl	$0, -48(%rbp)
	jne	LBB0_9
LBB0_11:
	leaq	8(%rbx), %r14
	movq	%rbx, %rdi
	addq	$16, %rdi
	movq	_nxt200x_ops@GOTPCREL(%rip), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%rbx, 8(%rbx)
	jmp	LBB0_12
LBB0_10:
	cmpl	$5, -64(%rbp)
	je	LBB0_11
LBB0_9:
	movq	%rbx, %rdi
	callq	_kfree
	leaq	L_.str.3(%rip), %rdi
	leaq	-64(%rbp), %rdx
	movl	$5, %esi
	callq	_pr_err
	xorl	%r14d, %r14d
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NXT info: %*ph\n"

L_.str.1:                               ## @.str.1
	.asciz	"NXT2002 Detected\n"

L_.str.2:                               ## @.str.2
	.asciz	"NXT2004 Detected\n"

	.comm	_nxt200x_ops,4,2                ## @nxt200x_ops
L_.str.3:                               ## @.str.3
	.asciz	"Unknown/Unsupported NXT chip: %*ph\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function nxt200x_attach
lCPI0_0:
	.long	4                               ; 0x4
	.long	2                               ; 0x2
	.long	17                              ; 0x11
	.long	32                              ; 0x20
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_nxt200x_attach
	.p2align	2
_nxt200x_attach:                        ; @nxt200x_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	stp	xzr, xzr, [sp, #16]
	str	wzr, [sp, #32]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.1:
	stp	x20, x21, [x19, #32]
	str	xzr, [x19, #24]
	add	x2, sp, #16
	mov	x0, x19
	mov	w1, #0
	mov	w3, #5
	bl	_nxt200x_readbytes
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	add	x2, sp, #16
	mov	w1, #5
	bl	_dprintk
	ldr	w8, [sp, #16]
	cmp	w8, #4
	b.eq	LBB0_4
; %bb.2:
	cmp	w8, #5
	b.ne	LBB0_10
; %bb.3:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w8, #128
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w8, #129
LBB0_5:
	str	w8, [x19]
	bl	_pr_info
	ldr	w8, [x19]
	cmp	w8, #128
	b.eq	LBB0_9
; %bb.6:
	cmp	w8, #129
	b.ne	LBB0_10
; %bb.7:
	ldr	q0, [sp, #16]
Lloh12:
	adrp	x8, lCPI0_0@PAGE
Lloh13:
	ldr	q1, [x8, lCPI0_0@PAGEOFF]
	cmeq.4s	v0, v0, v1
	mvn.16b	v0, v0
	xtn.4h	v0, v0
	umov.h	w8, v0[0]
	umov.h	w9, v0[1]
	and	w9, w9, #0x1
	bfi	w8, w9, #1, #1
	umov.h	w9, v0[2]
	and	w9, w9, #0x1
	umov.h	w10, v0[3]
	bfi	w8, w9, #2, #1
	bfi	w8, w10, #3, #29
	and	w8, w8, #0xf
	ldr	w9, [sp, #32]
	cmp	w8, #0
	ccmp	w9, #0, #0, eq
	b.ne	LBB0_10
LBB0_8:
	add	x20, x19, #8
	add	x0, x19, #16
Lloh14:
	adrp	x1, _nxt200x_ops@GOTPAGE
Lloh15:
	ldr	x1, [x1, _nxt200x_ops@GOTPAGEOFF]
	mov	w2, #4
	bl	_memcpy
	str	x19, [x19, #8]
	b	LBB0_11
LBB0_9:
	ldr	w8, [sp, #16]
	cmp	w8, #5
	b.eq	LBB0_8
LBB0_10:
	mov	x0, x19
	bl	_kfree
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	add	x2, sp, #16
	mov	w1, #5
	bl	_pr_err
	mov	x20, #0
LBB0_11:
	ldr	x8, [sp, #40]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NXT info: %*ph\n"

l_.str.1:                               ; @.str.1
	.asciz	"NXT2002 Detected\n"

l_.str.2:                               ; @.str.2
	.asciz	"NXT2004 Detected\n"

	.comm	_nxt200x_ops,4,2                ; @nxt200x_ops
l_.str.3:                               ; @.str.3
	.asciz	"Unknown/Unsupported NXT chip: %*ph\n"

.subsections_via_symbols
