	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mc44s803_attach                ## -- Begin function mc44s803_attach
	.p2align	4, 0x90
_mc44s803_attach:                       ## @mc44s803_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	$0, -40(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %rbx
	movq	%r12, 16(%rax)
	movq	%r15, 8(%rax)
	movq	%r14, (%rax)
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	*%rax
LBB0_3:
	movq	_MC44S803_REG_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_mc44s803_readreg
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	-40(%rbp), %rdi
	movq	_MC44S803_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MC44S803_REG_MS
	cmpl	$20, %eax
	jne	LBB0_5
## %bb.10:
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	$20, %edx
	callq	_mc_printk
	leaq	8(%r14), %rdi
	movq	_mc44s803_tuner_ops@GOTPCREL(%rip), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%rbx, 16(%r14)
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	*%rcx
	jmp	LBB0_12
LBB0_5:
	movq	_KERN_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_mc_printk
LBB0_6:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	*%rax
LBB0_8:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_9:
	xorl	%r14d, %r14d
LBB0_12:
	movq	%r14, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_MC44S803_REG_ID,4,2            ## @MC44S803_REG_ID
	.comm	_MC44S803_ID,4,2                ## @MC44S803_ID
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported ID (%x should be 0x14)\n"

	.comm	_KERN_INFO,4,2                  ## @KERN_INFO
L_.str.1:                               ## @.str.1
	.asciz	"successfully identified (ID = %x)\n"

	.comm	_mc44s803_tuner_ops,4,2         ## @mc44s803_tuner_ops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mc44s803_attach                ; -- Begin function mc44s803_attach
	.p2align	2
_mc44s803_attach:                       ; @mc44s803_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	str	xzr, [sp, #8]
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_7
; %bb.1:
	mov	x20, x0
	stp	x21, x22, [x0, #8]
	str	x19, [x0]
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #1
	blr	x8
LBB0_3:
Lloh3:
	adrp	x8, _MC44S803_REG_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MC44S803_REG_ID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x20
	bl	_mc44s803_readreg
	cbz	w0, LBB0_9
; %bb.4:
	ldr	x8, [x19]
	cbz	x8, LBB0_6
LBB0_5:
	mov	x0, x19
	mov	w1, #0
	blr	x8
LBB0_6:
	mov	x0, x20
	bl	_kfree
LBB0_7:
	mov	x19, #0
LBB0_8:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
LBB0_9:
	ldr	x0, [sp, #8]
Lloh6:
	adrp	x8, _MC44S803_ID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MC44S803_ID@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_MC44S803_REG_MS
	mov	x2, x0
	cmp	w0, #20
	b.ne	LBB0_12
; %bb.10:
Lloh9:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_mc_printk
	add	x0, x19, #8
Lloh14:
	adrp	x1, _mc44s803_tuner_ops@GOTPAGE
Lloh15:
	ldr	x1, [x1, _mc44s803_tuner_ops@GOTPAGEOFF]
	mov	w2, #4
	bl	_memcpy
	str	x20, [x19, #16]
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.11:
	mov	x0, x19
	mov	w1, #0
	blr	x8
	b	LBB0_8
LBB0_12:
Lloh16:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_mc_printk
	ldr	x8, [x19]
	cbnz	x8, LBB0_5
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_MC44S803_REG_ID,4,2            ; @MC44S803_REG_ID
	.comm	_MC44S803_ID,4,2                ; @MC44S803_ID
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported ID (%x should be 0x14)\n"

	.comm	_KERN_INFO,4,2                  ; @KERN_INFO
l_.str.1:                               ; @.str.1
	.asciz	"successfully identified (ID = %x)\n"

	.comm	_mc44s803_tuner_ops,4,2         ; @mc44s803_tuner_ops
.subsections_via_symbols
