	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx24110_attach                 ## -- Begin function cx24110_attach
	.p2align	4, 0x90
_cx24110_attach:                        ## @cx24110_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	$56, %edi
	callq	_kzalloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%r15, 48(%rbx)
	movq	%r14, 40(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movq	$0, 32(%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_cx24110_readreg
	cmpl	$105, %eax
	je	LBB0_3
## %bb.2:
	cmpl	$90, %eax
	jne	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	addq	$8, %rdi
	movq	_cx24110_ops@GOTPCREL(%rip), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%rbx, (%rbx)
	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	_cx24110_ops,4,2                ## @cx24110_ops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx24110_attach                 ; -- Begin function cx24110_attach
	.p2align	2
_cx24110_attach:                        ; @cx24110_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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	stp	x20, x21, [x19, #40]
	stp	xzr, xzr, [x19, #24]
	str	xzr, [x19, #16]
	mov	x0, x19
	mov	w1, #0
	bl	_cx24110_readreg
	cmp	w0, #105
	b.eq	LBB0_3
; %bb.2:
	cmp	w0, #90
	b.ne	LBB0_4
LBB0_3:
	add	x0, x19, #8
Lloh3:
	adrp	x1, _cx24110_ops@GOTPAGE
Lloh4:
	ldr	x1, [x1, _cx24110_ops@GOTPAGEOFF]
	mov	w2, #4
	bl	_memcpy
	str	x19, [x19]
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_5:
	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 AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_cx24110_ops,4,2                ; @cx24110_ops
.subsections_via_symbols
