	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dib7000pc_detection            ## -- Begin function dib7000pc_detection
	.p2align	4, 0x90
_dib7000pc_detection:                   ## @dib7000pc_detection
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movl	$9, -80(%rbp)
	leaq	-24(%rbp), %rax
	movq	%rax, -72(%rbp)
	movq	$2, -64(%rbp)
	movl	$9, -56(%rbp)
	leaq	-32(%rbp), %rax
	movq	%rax, -48(%rbp)
	movl	$2, -40(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	$3, -24(%rbp)
	leaq	-80(%rbp), %rsi
	movl	$2, %edx
	callq	_i2c_transfer
	cmpl	$2, %eax
	jne	LBB0_4
## %bb.1:
	cmpl	$1, -32(%rbp)
	jne	LBB0_4
## %bb.2:
	cmpl	$179, -28(%rbp)
	je	LBB0_3
LBB0_4:
	movl	$64, -56(%rbp)
	movl	$64, -80(%rbp)
	leaq	-80(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_i2c_transfer
	cmpl	$2, %eax
	jne	LBB0_7
## %bb.5:
	cmpl	$1, -32(%rbp)
	jne	LBB0_7
## %bb.6:
	cmpl	$179, -28(%rbp)
	jne	LBB0_7
LBB0_3:
	movl	$1, %ebx
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_8
LBB0_7:
	xorl	%ebx, %ebx
	leaq	L_.str.1(%rip), %rdi
LBB0_8:
	callq	_dprintk
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-D-  DiB7000PC detected"

L_.str.1:                               ## @.str.1
	.asciz	"-D-  DiB7000PC not detected"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function dib7000pc_detection
lCPI0_0:
	.long	2                               ; 0x2
	.long	0                               ; 0x0
lCPI0_1:
	.long	3                               ; 0x3
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_dib7000pc_detection
	.p2align	2
_dib7000pc_detection:                   ; @dib7000pc_detection
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	mov	w8, #9
	str	w8, [sp, #16]
	add	x9, sp, #8
	str	x9, [sp, #24]
Lloh3:
	adrp	x9, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [sp, #32]
	str	w8, [sp, #40]
	sub	x8, x29, #32
	str	x8, [sp, #48]
	mov	w8, #2
Lloh5:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh6:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #56]
Lloh8:
	adrp	x8, lCPI0_1@PAGE
Lloh9:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [sp, #8]
	add	x1, sp, #16
	mov	w2, #2
	bl	_i2c_transfer
	cmp	w0, #2
	b.ne	LBB0_3
; %bb.1:
	ldur	w8, [x29, #-32]
	cmp	w8, #1
	b.ne	LBB0_3
; %bb.2:
	ldur	w8, [x29, #-28]
	cmp	w8, #179
	b.eq	LBB0_6
LBB0_3:
	mov	w8, #64
	str	w8, [sp, #40]
	str	w8, [sp, #16]
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #2
	bl	_i2c_transfer
	cmp	w0, #2
	b.ne	LBB0_7
; %bb.4:
	ldur	w8, [x29, #-32]
	cmp	w8, #1
	b.ne	LBB0_7
; %bb.5:
	ldur	w8, [x29, #-28]
	cmp	w8, #179
	b.ne	LBB0_7
LBB0_6:
	mov	w19, #1
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:
	mov	w19, #0
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_8:
	bl	_dprintk
	ldur	x8, [x29, #-24]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdrp	Lloh3, Lloh5
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-D-  DiB7000PC detected"

l_.str.1:                               ; @.str.1
	.asciz	"-D-  DiB7000PC not detected"

.subsections_via_symbols
