	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx24117_attach                 ## -- Begin function cx24117_attach
	.p2align	4, 0x90
_cx24117_attach:                        ## @cx24117_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	$0, -32(%rbp)
	movl	(%rdi), %edx
	leaq	-32(%rbp), %rdi
	callq	_cx24117_get_priv
	movl	%eax, %ebx
	cmpl	$1, %eax
	je	LBB0_3
## %bb.1:
	testl	%ebx, %ebx
	jne	LBB0_4
## %bb.2:
	movq	_KBUILD_MODNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_dev_err
	jmp	LBB0_7
LBB0_3:
	movq	-32(%rbp), %rax
	movq	%r14, (%rax)
	movl	(%r15), %eax
	movq	-32(%rbp), %rdi
	movl	%eax, 12(%rdi)
	addq	$8, %rdi
	callq	_mutex_init
LBB0_4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, %r14
	decl	%ebx
	movl	%ebx, (%rax)
	movq	-32(%rbp), %rax
	movq	%rax, 24(%r14)
	movq	(%rax), %rdi
	movq	_KBUILD_MODNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %ecx
	callq	_dev_info
	leaq	8(%r14), %rbx
	movq	%r14, %rdi
	addq	$16, %rdi
	movq	_cx24117_ops@GOTPCREL(%rip), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r14, 8(%r14)
	jmp	LBB0_7
LBB0_6:
	movq	-32(%rbp), %rdi
	callq	_cx24117_release_priv
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Error attaching frontend %d\n"

	.comm	_KBUILD_MODNAME,4,2             ## @KBUILD_MODNAME
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"%s: Attaching frontend %d\n"

	.comm	_cx24117_ops,4,2                ## @cx24117_ops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx24117_attach                 ; -- Begin function cx24117_attach
	.p2align	2
_cx24117_attach:                        ; @cx24117_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
	str	xzr, [sp, #8]
	ldr	w2, [x0]
	add	x0, sp, #8
	bl	_cx24117_get_priv
	subs	w19, w0, #1
	b.eq	LBB0_3
; %bb.1:
	cbnz	w0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _KBUILD_MODNAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KBUILD_MODNAME@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	w3, #0
	bl	_dev_err
	b	LBB0_7
LBB0_3:
	ldr	x8, [sp, #8]
	str	x20, [x8]
	ldr	w8, [x21]
	ldr	x9, [sp, #8]
	str	w8, [x9, #12]
	add	x0, x9, #8
	bl	_mutex_init
LBB0_4:
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.5:
	mov	x20, x0
	str	w19, [x0]
	ldr	x8, [sp, #8]
	str	x8, [x0, #24]
	ldr	x0, [x8]
Lloh8:
	adrp	x8, _KBUILD_MODNAME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KBUILD_MODNAME@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x19
	bl	_dev_info
	add	x19, x20, #8
	add	x0, x20, #16
Lloh13:
	adrp	x1, _cx24117_ops@GOTPAGE
Lloh14:
	ldr	x1, [x1, _cx24117_ops@GOTPAGEOFF]
	mov	w2, #4
	bl	_memcpy
	str	x20, [x20, #8]
	b	LBB0_8
LBB0_6:
	ldr	x0, [sp, #8]
	bl	_cx24117_release_priv
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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Error attaching frontend %d\n"

	.comm	_KBUILD_MODNAME,4,2             ; @KBUILD_MODNAME
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"%s: Attaching frontend %d\n"

	.comm	_cx24117_ops,4,2                ; @cx24117_ops
.subsections_via_symbols
