	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zc0301_probe_pb0330            ## -- Begin function zc0301_probe_pb0330
	.p2align	4, 0x90
_zc0301_probe_pb0330:                   ## @zc0301_probe_pb0330
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_zc0301_write_reg
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	$16, %esi
	movl	$10, %edx
	callq	_zc0301_write_reg
	movq	%rax, %r12
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_zc0301_write_reg
	movq	%rax, %r13
	movq	%rbx, %rdi
	movl	$18, %esi
	movl	$3, %edx
	callq	_zc0301_write_reg
	movq	%rax, %r15
	movq	%rbx, %rdi
	movl	$18, %esi
	movl	$1, %edx
	callq	_zc0301_write_reg
	movq	%rax, %r14
	movl	$10, %edi
	callq	_msleep
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	callq	_zc0301_i2c_read
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	addl	-48(%rbp), %r12d                ## 4-byte Folded Reload
	addl	%r12d, %r13d
	addl	%r13d, %r15d
	addl	%r15d, %r14d
	jne	LBB0_2
## %bb.4:
	cmpl	$33347, %eax                    ## imm = 0x8243
	jne	LBB0_5
## %bb.6:
	movq	_pb0330@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_zc0301_attach_sensor
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_5:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_pb0330,4,2                     ## @pb0330
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zc0301_probe_pb0330            ; -- Begin function zc0301_probe_pb0330
	.p2align	2
_zc0301_probe_pb0330:                   ; @zc0301_probe_pb0330
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	mov	w1, #0
	mov	w2, #1
	bl	_zc0301_write_reg
	mov	x20, x0
	mov	x0, x19
	mov	w1, #16
	mov	w2, #10
	bl	_zc0301_write_reg
	mov	x21, x0
	mov	x0, x19
	mov	w1, #1
	mov	w2, #1
	bl	_zc0301_write_reg
	mov	x22, x0
	mov	x0, x19
	mov	w1, #18
	mov	w2, #3
	bl	_zc0301_write_reg
	mov	x23, x0
	mov	x0, x19
	mov	w1, #18
	mov	w2, #1
	bl	_zc0301_write_reg
	mov	x24, x0
	mov	w0, #10
	bl	_msleep
	mov	x0, x19
	mov	w1, #0
	mov	w2, #2
	bl	_zc0301_i2c_read
	tbnz	w0, #31, LBB0_4
; %bb.1:
	add	w8, w21, w20
	add	w8, w8, w22
	add	w8, w8, w23
	add	w8, w8, w24
	cbnz	w8, LBB0_4
; %bb.2:
	mov	w8, #33347
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.3:
Lloh0:
	adrp	x1, _pb0330@GOTPAGE
Lloh1:
	ldr	x1, [x1, _pb0330@GOTPAGEOFF]
	mov	x0, x19
	bl	_zc0301_attach_sensor
	mov	w0, #0
	b	LBB0_7
LBB0_4:
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_pb0330,4,2                     ; @pb0330
.subsections_via_symbols
