	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function af9005_identify_state
_af9005_identify_state:                 ## @af9005_identify_state
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdi, %rbx
	movq	_FW_BULKOUT_SIZE@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	$2, %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movq	_FW_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r12), %r8
	addq	$2, %r8
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rcx
	callq	_af9005_boot_packet
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movl	-36(%rbp), %esi
	leaq	L_.str(%rip), %rdi
	callq	_deb_info
	movl	-36(%rbp), %esi
	cmpl	$1, %esi
	je	LBB0_7
## %bb.5:
	cmpl	$2, %esi
	jne	LBB0_10
## %bb.6:
	xorl	%esi, %esi
LBB0_7:
	movl	%esi, (%r14)
	leaq	L_.str.1(%rip), %rdi
	callq	_deb_info
LBB0_8:
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_BULKOUT_SIZE,8,3            ## @FW_BULKOUT_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_FW_CONFIG,4,2                  ## @FW_CONFIG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"result of FW_CONFIG in identify state %d\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"Identify state cold = %d\n"

	.no_dead_strip	_af9005_identify_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function af9005_identify_state
_af9005_identify_state:                 ; @af9005_identify_state
	.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	x19, x3
	mov	x21, x0
Lloh0:
	adrp	x22, _FW_BULKOUT_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _FW_BULKOUT_SIZE@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x0, x8, #2
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kmalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
Lloh5:
	adrp	x8, _FW_CONFIG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FW_CONFIG@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	x8, [x22]
	add	x4, x8, #2
	add	x2, sp, #12
	mov	x0, x21
	mov	x3, x20
	bl	_af9005_boot_packet
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	w1, [sp, #12]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_deb_info
	ldr	w1, [sp, #12]
	cmp	w1, #1
	b.eq	LBB0_5
; %bb.3:
	cmp	w1, #2
	b.ne	LBB0_10
; %bb.4:
	mov	w1, #0
LBB0_5:
	str	w1, [x19]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_deb_info
LBB0_6:
	mov	x0, x20
	bl	_kfree
	b	LBB0_9
LBB0_7:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	mov	x0, x21
	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
LBB0_10:
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_BULKOUT_SIZE,8,3            ; @FW_BULKOUT_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_FW_CONFIG,4,2                  ; @FW_CONFIG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"result of FW_CONFIG in identify state %d\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"Identify state cold = %d\n"

	.no_dead_strip	_af9005_identify_state
.subsections_via_symbols
