	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib3000mc_identify
_dib3000mc_identify:                    ## @dib3000mc_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	$1025, %esi                     ## imm = 0x401
	callq	_dib3000mc_read_word
	cmpl	$435, %eax                      ## imm = 0x1B3
	jne	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movl	$1026, %esi                     ## imm = 0x402
	callq	_dib3000mc_read_word
	movl	%eax, %esi
	addl	$-12291, %eax                   ## imm = 0xCFFD
	cmpl	$-3, %eax
	ja	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
LBB0_4:
	callq	_dprintk
	movq	_EREMOTEIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_5:
	movl	%esi, (%rbx)
	leaq	L_.str.2(%rip), %rdi
	callq	_dprintk
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-E-  DiB3000MC/P: wrong Vendor ID (read=0x%x)\n"

	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
L_.str.1:                               ## @.str.1
	.asciz	"-E-  DiB3000MC/P: wrong Device ID (%x)\n"

L_.str.2:                               ## @.str.2
	.asciz	"-I-  found DiB3000MC/P: %x\n"

	.no_dead_strip	_dib3000mc_identify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib3000mc_identify
_dib3000mc_identify:                    ; @dib3000mc_identify
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w1, #1025
	bl	_dib3000mc_read_word
	cmp	w0, #435
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	mov	w1, #1026
	bl	_dib3000mc_read_word
	mov	x1, x0
	mov	w8, #-12291
	add	w8, w0, w8
	cmn	w8, #3
	b.hi	LBB0_5
; %bb.2:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
	bl	_dprintk
Lloh4:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	str	w1, [x19]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_dprintk
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-E-  DiB3000MC/P: wrong Vendor ID (read=0x%x)\n"

	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
l_.str.1:                               ; @.str.1
	.asciz	"-E-  DiB3000MC/P: wrong Device ID (%x)\n"

l_.str.2:                               ; @.str.2
	.asciz	"-I-  found DiB3000MC/P: %x\n"

	.no_dead_strip	_dib3000mc_identify
.subsections_via_symbols
