	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function tea5767_attach
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_tea5767_attach
	.p2align	4, 0x90
_tea5767_attach:                        ## @tea5767_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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, 8(%rbx)
	movl	%r15d, 40(%rax)
	movq	%r14, 32(%rax)
	leaq	L_.str(%rip), %rcx
	movq	%rcx, 24(%rax)
	movq	_TEA5767_HIGH_LO_32768@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rax)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,1,1,1]
	movups	%xmm0, (%rax)
	movl	$1, 16(%rax)
	movq	_tea5767_tuner_ops@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_memcpy
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_tuner_info
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	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	"tea5767"

	.comm	_TEA5767_HIGH_LO_32768,4,2      ## @TEA5767_HIGH_LO_32768
	.comm	_tea5767_tuner_ops,4,2          ## @tea5767_tuner_ops
L_.str.1:                               ## @.str.1
	.asciz	"type set to %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"Philips TEA5767HN FM Radio"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tea5767_attach                 ; -- Begin function tea5767_attach
	.p2align	2
_tea5767_attach:                        ; @tea5767_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	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_2
; %bb.1:
	str	x0, [x19, #8]
	str	w21, [x0, #40]
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
	stp	x8, x20, [x0, #24]
Lloh5:
	adrp	x8, _TEA5767_HIGH_LO_32768@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TEA5767_HIGH_LO_32768@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	movi.4s	v0, #1
	str	q0, [x0]
	mov	w9, #1
	stp	w9, w8, [x0, #16]
Lloh8:
	adrp	x1, _tea5767_tuner_ops@GOTPAGE
Lloh9:
	ldr	x1, [x1, _tea5767_tuner_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	w2, #4
	bl	_memcpy
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_tuner_info
	b	LBB0_3
LBB0_2:
	mov	x19, #0
LBB0_3:
	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	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tea5767"

	.comm	_TEA5767_HIGH_LO_32768,4,2      ; @TEA5767_HIGH_LO_32768
	.comm	_tea5767_tuner_ops,4,2          ; @tea5767_tuner_ops
l_.str.1:                               ; @.str.1
	.asciz	"type set to %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"Philips TEA5767HN FM Radio"

.subsections_via_symbols
