	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_itd1000_attach                 ## -- Begin function itd1000_attach
	.p2align	4, 0x90
_itd1000_attach:                        ## @itd1000_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r15
	movq	%r12, 16(%rax)
	movq	%rbx, 8(%rax)
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_itd1000_read_reg
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movq	%r15, %rdi
	callq	_kfree
LBB0_3:
	xorl	%r14d, %r14d
	jmp	LBB0_7
LBB0_4:
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	callq	_itd_info
	movq	(%r15), %rdi
	movl	$255, %esi
	movl	$8, %edx
	callq	_memset
	movl	$101, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_itd1000_read_reg
	movq	(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	$156, %rbx
	jne	LBB0_5
## %bb.6:
	leaq	8(%r14), %rdi
	movq	_itd1000_tuner_ops@GOTPCREL(%rip), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r15, (%r14)
LBB0_7:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"successfully identified (ID: %d)\n"

	.comm	_itd1000_tuner_ops,4,2          ## @itd1000_tuner_ops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_itd1000_attach                 ; -- Begin function itd1000_attach
	.p2align	2
_itd1000_attach:                        ; @itd1000_attach
	.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	x22, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	stp	x21, x22, [x0, #8]
	mov	w1, #0
	bl	_itd1000_read_reg
	cbz	w0, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_kfree
LBB0_3:
	mov	x19, #0
	b	LBB0_7
LBB0_4:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #0
	bl	_itd_info
	ldr	x0, [x20]
	mov	w1, #255
	mov	w2, #8
	bl	_memset
	mov	w21, #101
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_itd1000_read_reg
	ldr	x8, [x20]
	str	x0, [x8, x21, lsl #3]
	add	x21, x21, #1
	cmp	x21, #156
	b.ne	LBB0_5
; %bb.6:
	add	x0, x19, #8
Lloh5:
	adrp	x1, _itd1000_tuner_ops@GOTPAGE
Lloh6:
	ldr	x1, [x1, _itd1000_tuner_ops@GOTPAGEOFF]
	mov	w2, #4
	bl	_memcpy
	str	x20, [x19]
LBB0_7:
	mov	x0, 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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"successfully identified (ID: %d)\n"

	.comm	_itd1000_tuner_ops,4,2          ; @itd1000_tuner_ops
.subsections_via_symbols
