	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bd9571mwv_identify
_bd9571mwv_identify:                    ## @bd9571mwv_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movl	(%rdi), %edi
	movq	_BD9571MWV_VENDOR_CODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_13
LBB0_3:
	movl	-28(%rbp), %edx
	movq	_BD9571MWV_VENDOR_CODE_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %edx
	jne	LBB0_4
## %bb.6:
	movl	(%rbx), %edi
	movq	_BD9571MWV_PRODUCT_CODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
LBB0_5:
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_13:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	-28(%rbp), %edx
	movq	_BD9571MWV_PRODUCT_CODE_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %edx
	jne	LBB0_9
## %bb.10:
	movl	(%rbx), %edi
	movq	_BD9571MWV_PRODUCT_REVISION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_2
LBB0_9:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_5
LBB0_12:
	movzbl	-28(%rbp), %edx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%r15d, %r15d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_BD9571MWV_VENDOR_CODE,4,2      ## @BD9571MWV_VENDOR_CODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to read vendor code register (ret=%i)\n"

	.comm	_BD9571MWV_VENDOR_CODE_VAL,4,2  ## @BD9571MWV_VENDOR_CODE_VAL
L_.str.1:                               ## @.str.1
	.asciz	"Invalid vendor code ID %02x (expected %02x)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BD9571MWV_PRODUCT_CODE,4,2     ## @BD9571MWV_PRODUCT_CODE
L_.str.2:                               ## @.str.2
	.asciz	"Failed to read product code register (ret=%i)\n"

	.comm	_BD9571MWV_PRODUCT_CODE_VAL,4,2 ## @BD9571MWV_PRODUCT_CODE_VAL
L_.str.3:                               ## @.str.3
	.asciz	"Invalid product code ID %02x (expected %02x)\n"

	.comm	_BD9571MWV_PRODUCT_REVISION,4,2 ## @BD9571MWV_PRODUCT_REVISION
L_.str.4:                               ## @.str.4
	.asciz	"Failed to read revision register (ret=%i)\n"

L_.str.5:                               ## @.str.5
	.asciz	"Device: BD9571MWV rev. %d\n"

	.no_dead_strip	_bd9571mwv_identify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bd9571mwv_identify
_bd9571mwv_identify:                    ; @bd9571mwv_identify
	.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	x21, x0
	ldr	x19, [x0, #8]
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _BD9571MWV_VENDOR_CODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BD9571MWV_VENDOR_CODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbz	w0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
	b	LBB0_8
LBB0_3:
	ldr	w2, [sp, #12]
Lloh5:
	adrp	x8, _BD9571MWV_VENDOR_CODE_VAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BD9571MWV_VENDOR_CODE_VAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w2, w8
	b.ne	LBB0_6
; %bb.4:
	ldr	w0, [x21]
Lloh8:
	adrp	x8, _BD9571MWV_PRODUCT_CODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BD9571MWV_PRODUCT_CODE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbz	w0, LBB0_9
; %bb.5:
	mov	x20, x0
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_6:
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_dev_err
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_8:
	mov	x0, x20
	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_9:
	ldr	w2, [sp, #12]
Lloh18:
	adrp	x8, _BD9571MWV_PRODUCT_CODE_VAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BD9571MWV_PRODUCT_CODE_VAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w2, w8
	b.ne	LBB0_12
; %bb.10:
	ldr	w0, [x21]
Lloh21:
	adrp	x8, _BD9571MWV_PRODUCT_REVISION@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BD9571MWV_PRODUCT_REVISION@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	mov	x20, x0
	cbz	w0, LBB0_13
; %bb.11:
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_2
LBB0_12:
	str	x8, [sp]
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_13:
	ldrb	w2, [sp, #12]
Lloh28:
	adrp	x1, l_.str.5@PAGE
Lloh29:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_BD9571MWV_VENDOR_CODE,4,2      ; @BD9571MWV_VENDOR_CODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to read vendor code register (ret=%i)\n"

	.comm	_BD9571MWV_VENDOR_CODE_VAL,4,2  ; @BD9571MWV_VENDOR_CODE_VAL
l_.str.1:                               ; @.str.1
	.asciz	"Invalid vendor code ID %02x (expected %02x)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BD9571MWV_PRODUCT_CODE,4,2     ; @BD9571MWV_PRODUCT_CODE
l_.str.2:                               ; @.str.2
	.asciz	"Failed to read product code register (ret=%i)\n"

	.comm	_BD9571MWV_PRODUCT_CODE_VAL,4,2 ; @BD9571MWV_PRODUCT_CODE_VAL
l_.str.3:                               ; @.str.3
	.asciz	"Invalid product code ID %02x (expected %02x)\n"

	.comm	_BD9571MWV_PRODUCT_REVISION,4,2 ; @BD9571MWV_PRODUCT_REVISION
l_.str.4:                               ; @.str.4
	.asciz	"Failed to read revision register (ret=%i)\n"

l_.str.5:                               ; @.str.5
	.asciz	"Device: BD9571MWV rev. %d\n"

	.no_dead_strip	_bd9571mwv_identify
.subsections_via_symbols
