	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ionic_identify                 ## -- Begin function ionic_identify
	.p2align	4, 0x90
_ionic_identify:                        ## @ionic_identify
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	16(%rdi), %r14
	leaq	8(%rdi), %r15
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_IONIC_OS_TYPE_LINUX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	leaq	20(%rbx), %r12
	movl	%eax, 24(%rbx)
	movl	20(%rbx), %edi
	movq	_IONIC_DRV_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$3, %edx
	callq	_strncpy
	movq	%rbx, %rdi
	callq	_mutex_lock
	movl	$8, %edi
	movl	$4, %esi
	callq	_min
	movq	8(%rbx), %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	callq	_memcpy_toio
	movq	_IONIC_IDENTITY_VERSION_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ionic_dev_cmd_identify
	movq	_DEVCMD_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ionic_dev_cmd_wait
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	jmp	LBB0_3
LBB0_1:
	movl	$4, %edi
	movl	$4, %esi
	callq	_min
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_memcpy_fromio
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	callq	_ionic_debugfs_add_ident
LBB0_3:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IONIC_OS_TYPE_LINUX,4,2        ## @IONIC_OS_TYPE_LINUX
	.comm	_IONIC_DRV_VERSION,4,2          ## @IONIC_DRV_VERSION
	.comm	_IONIC_IDENTITY_VERSION_1,4,2   ## @IONIC_IDENTITY_VERSION_1
	.comm	_DEVCMD_TIMEOUT,4,2             ## @DEVCMD_TIMEOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ionic_identify                 ; -- Begin function ionic_identify
	.p2align	2
_ionic_identify:                        ; @ionic_identify
	.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	x19, x0
	add	x20, x0, #16
	mov	x0, x20
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh0:
	adrp	x8, _IONIC_OS_TYPE_LINUX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IONIC_OS_TYPE_LINUX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	w0, [x19, #24]
	mov	x21, x19
	ldr	w0, [x21, #20]!
Lloh3:
	adrp	x8, _IONIC_DRV_VERSION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IONIC_DRV_VERSION@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #3
	bl	_strncpy
	mov	x0, x19
	bl	_mutex_lock
	mov	w0, #8
	mov	w1, #4
	bl	_min
	mov	x2, x0
	mov	x22, x19
	ldr	x0, [x22, #8]!
	mov	x1, x21
	bl	_memcpy_toio
Lloh6:
	adrp	x8, _IONIC_IDENTITY_VERSION_1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IONIC_IDENTITY_VERSION_1@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_ionic_dev_cmd_identify
Lloh9:
	adrp	x8, _DEVCMD_TIMEOUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DEVCMD_TIMEOUT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ionic_dev_cmd_wait
	mov	x21, x0
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_3
LBB0_2:
	mov	w0, #4
	mov	w1, #4
	bl	_min
	mov	x2, x0
	ldr	x1, [x19, #8]
	mov	x0, x20
	bl	_memcpy_fromio
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x19
	bl	_ionic_debugfs_add_ident
LBB0_3:
	mov	x0, x21
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IONIC_OS_TYPE_LINUX,4,2        ; @IONIC_OS_TYPE_LINUX
	.comm	_IONIC_DRV_VERSION,4,2          ; @IONIC_DRV_VERSION
	.comm	_IONIC_IDENTITY_VERSION_1,4,2   ; @IONIC_IDENTITY_VERSION_1
	.comm	_DEVCMD_TIMEOUT,4,2             ; @DEVCMD_TIMEOUT
.subsections_via_symbols
