	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl28xxu_identify_state
_rtl28xxu_identify_state:               ## @rtl28xxu_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_d_to_priv
	movq	%rax, %r14
	movl	$32, -48(%rbp)
	movq	_CMD_I2C_DA_RD@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	$0, -32(%rbp)
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_rtl28xxu_ctrl_msg
	movl	%eax, %ebx
	movq	_EPIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_2
## %bb.1:
	movq	_CHIP_ID_RTL2831U@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.6:
	movq	(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
	movq	(%r15), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_5
LBB0_3:
	movq	_CHIP_ID_RTL2832U@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edx
	movl	%edx, (%r14)
	movq	(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	$3, 8(%r15)
	movl	$10, %edi
	callq	_msecs_to_jiffies
	movl	%eax, 12(%r15)
	movq	_WARM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_I2C_DA_RD,4,2              ## @CMD_I2C_DA_RD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_EPIPE,4,2                      ## @EPIPE
	.comm	_CHIP_ID_RTL2831U,4,2           ## @CHIP_ID_RTL2831U
	.comm	_CHIP_ID_RTL2832U,4,2           ## @CHIP_ID_RTL2832U
L_.str.1:                               ## @.str.1
	.asciz	"chip type detection failed %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"chip_id=%u\n"

	.comm	_WARM,4,2                       ## @WARM
L_.str.3:                               ## @.str.3
	.asciz	"failed=%d\n"

	.no_dead_strip	_rtl28xxu_identify_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl28xxu_identify_state
_rtl28xxu_identify_state:               ; @rtl28xxu_identify_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	bl	_d_to_priv
	mov	x20, x0
	mov	w8, #32
Lloh0:
	adrp	x9, _CMD_I2C_DA_RD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CMD_I2C_DA_RD@GOTPAGEOFF]
	str	w8, [sp, #8]
Lloh2:
	ldrsw	x8, [x9]
	stp	x8, xzr, [sp, #16]
	ldr	x0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	add	x1, sp, #8
	mov	x0, x19
	bl	_rtl28xxu_ctrl_msg
Lloh5:
	adrp	x8, _EPIPE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EPIPE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _CHIP_ID_RTL2831U@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CHIP_ID_RTL2831U@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.3:
	ldr	x0, [x19]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_dev_err
	ldr	x0, [x19]
	str	x21, [sp]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_dbg
	b	LBB0_6
LBB0_4:
Lloh14:
	adrp	x8, _CHIP_ID_RTL2832U@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CHIP_ID_RTL2832U@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	str	w8, [x20]
	ldr	x0, [x19]
	str	x8, [sp]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	mov	w8, #3
	str	w8, [x19, #8]
	mov	w0, #10
	bl	_msecs_to_jiffies
	str	w0, [x19, #12]
Lloh18:
	adrp	x8, _WARM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WARM@GOTPAGEOFF]
Lloh20:
	ldr	w21, [x8]
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_I2C_DA_RD,4,2              ; @CMD_I2C_DA_RD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_EPIPE,4,2                      ; @EPIPE
	.comm	_CHIP_ID_RTL2831U,4,2           ; @CHIP_ID_RTL2831U
	.comm	_CHIP_ID_RTL2832U,4,2           ; @CHIP_ID_RTL2832U
l_.str.1:                               ; @.str.1
	.asciz	"chip type detection failed %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"chip_id=%u\n"

	.comm	_WARM,4,2                       ; @WARM
l_.str.3:                               ; @.str.3
	.asciz	"failed=%d\n"

	.no_dead_strip	_rtl28xxu_identify_state
.subsections_via_symbols
