	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function bcm3510_attach
LCPI0_0:
	.long	8                               ## 0x8
	.long	1                               ## 0x1
	.long	11                              ## 0xb
	.long	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_bcm3510_attach
	.p2align	4, 0x90
_bcm3510_attach:                        ## @bcm3510_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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%r15, 32(%rbx)
	movq	%r14, 24(%rbx)
	leaq	8(%rbx), %rdi
	movq	_bcm3510_ops@GOTPCREL(%rip), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%rbx, (%rbx)
	movq	%rbx, %rdi
	addq	$16, %rdi
	callq	_mutex_init
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$224, %esi
	callq	_bcm3510_readB
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:
	movl	-32(%rbp), %esi
	movl	-28(%rbp), %edx
	leaq	L_.str(%rip), %rdi
	callq	_deb_info
	movq	-32(%rbp), %xmm0                ## xmm0 = mem[0],zero
	pshufd	$80, %xmm0, %xmm1               ## xmm1 = xmm0[0,0,1,1]
	pcmpeqd	LCPI0_0(%rip), %xmm1
	movmskps	%xmm1, %eax
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movd	%xmm0, %esi
	pextrd	$1, %xmm0, %edx
	leaq	L_.str.1(%rip), %rdi
	callq	_info
	movq	%rbx, %rdi
	callq	_bcm3510_reset
	jmp	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%ebx, %ebx
LBB0_5:
	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
	.comm	_bcm3510_ops,4,2                ## @bcm3510_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Revision: 0x%1x, Layer: 0x%1x.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Revision: 0x%1x, Layer: 0x%1x."

.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 bcm3510_attach
lCPI0_0:
	.long	8                               ; 0x8
	.long	1                               ; 0x1
	.long	11                              ; 0xb
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_bcm3510_attach
	.p2align	2
_bcm3510_attach:                        ; @bcm3510_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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	stp	x20, x21, [x19, #24]
	add	x0, x19, #8
Lloh3:
	adrp	x1, _bcm3510_ops@GOTPAGE
Lloh4:
	ldr	x1, [x1, _bcm3510_ops@GOTPAGEOFF]
	mov	w2, #4
	bl	_memcpy
	str	x19, [x19]
	add	x0, x19, #16
	bl	_mutex_init
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #224
	bl	_bcm3510_readB
	tbnz	w0, #31, LBB0_4
; %bb.2:
	ldp	w1, w2, [sp, #8]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_deb_info
	ldr	d0, [sp, #8]
	zip1.4s	v1, v0, v0
Lloh7:
	adrp	x8, lCPI0_0@PAGE
Lloh8:
	ldr	q2, [x8, lCPI0_0@PAGEOFF]
	cmeq.4s	v1, v1, v2
	xtn.4h	v1, v1
	umov.h	w8, v1[0]
	umov.h	w9, v1[1]
	and	w9, w9, #0x1
	bfi	w8, w9, #1, #1
	umov.h	w9, v1[2]
	and	w9, w9, #0x1
	bfi	w8, w9, #2, #1
	umov.h	w9, v1[3]
	bfi	w8, w9, #3, #29
	tst	w8, #0xf
	b.eq	LBB0_4
; %bb.3:
	fmov	w1, s0
	mov.s	w2, v0[1]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_info
	mov	x0, x19
	bl	_bcm3510_reset
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_bcm3510_ops,4,2                ; @bcm3510_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Revision: 0x%1x, Layer: 0x%1x.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Revision: 0x%1x, Layer: 0x%1x."

.subsections_via_symbols
