	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zl10353_attach                 ## -- Begin function zl10353_attach
	.p2align	4, 0x90
_zl10353_attach:                        ## @zl10353_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, %r15
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%r15, 24(%rbx)
	leaq	16(%rbx), %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	_CHIP_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_zl10353_read_register
	movq	_ID_ZL10353@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_4
## %bb.2:
	movq	_ID_CE6230@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_4
## %bb.3:
	movq	_ID_CE6231@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_4
LBB0_5:
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	addq	$8, %rdi
	movq	_zl10353_ops@GOTPCREL(%rip), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%rbx, (%rbx)
LBB0_6:
	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	_CHIP_ID,4,2                    ## @CHIP_ID
	.comm	_ID_ZL10353,4,2                 ## @ID_ZL10353
	.comm	_ID_CE6230,4,2                  ## @ID_CE6230
	.comm	_ID_CE6231,4,2                  ## @ID_CE6231
	.comm	_zl10353_ops,4,2                ## @zl10353_ops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zl10353_attach                 ; -- Begin function zl10353_attach
	.p2align	2
_zl10353_attach:                        ; @zl10353_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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
	str	x21, [x19, #24]
	add	x0, x19, #16
	mov	x1, x20
	mov	w2, #4
	bl	_memcpy
Lloh3:
	adrp	x8, _CHIP_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CHIP_ID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_zl10353_read_register
Lloh6:
	adrp	x8, _ID_ZL10353@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ID_ZL10353@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _ID_CE6230@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ID_CE6230@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _ID_CE6231@GOTPAGE
Lloh13:
	ldr	x10, [x10, _ID_CE6231@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	ccmp	w0, w10, #4, ne
	b.ne	LBB0_3
; %bb.2:
	add	x0, x19, #8
Lloh15:
	adrp	x1, _zl10353_ops@GOTPAGE
Lloh16:
	ldr	x1, [x1, _zl10353_ops@GOTPAGEOFF]
	mov	w2, #4
	bl	_memcpy
	str	x19, [x19]
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_4:
	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 AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_CHIP_ID,4,2                    ; @CHIP_ID
	.comm	_ID_ZL10353,4,2                 ; @ID_ZL10353
	.comm	_ID_CE6230,4,2                  ; @ID_CE6230
	.comm	_ID_CE6231,4,2                  ; @ID_CE6231
	.comm	_zl10353_ops,4,2                ; @zl10353_ops
.subsections_via_symbols
