	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function port_has_stv0367
_port_has_stv0367:                      ## @port_has_stv0367
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	-20(%rbp), %rcx
	movl	$30, %esi
	movl	$61440, %edx                    ## imm = 0xF000
	callq	_i2c_read_reg16
	xorl	%r14d, %r14d
	testq	%rax, %rax
	js	LBB0_4
## %bb.1:
	cmpl	$96, -20(%rbp)
	jne	LBB0_4
## %bb.2:
	leaq	-20(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$31, %esi
	movl	$61440, %edx                    ## imm = 0xF000
	callq	_i2c_read_reg16
	testq	%rax, %rax
	js	LBB0_4
## %bb.3:
	xorl	%r14d, %r14d
	cmpl	$96, -20(%rbp)
	sete	%r14b
LBB0_4:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_port_has_stv0367
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function port_has_stv0367
_port_has_stv0367:                      ; @port_has_stv0367
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x3, sp, #12
	mov	w1, #30
	mov	w2, #61440
	bl	_i2c_read_reg16
	mov	x8, x0
	mov	w0, #0
	tbnz	x8, #63, LBB0_5
; %bb.1:
	ldr	w8, [sp, #12]
	cmp	w8, #96
	b.ne	LBB0_5
; %bb.2:
	add	x3, sp, #12
	mov	x0, x19
	mov	w1, #31
	mov	w2, #61440
	bl	_i2c_read_reg16
	tbnz	x0, #63, LBB0_4
; %bb.3:
	ldr	w8, [sp, #12]
	cmp	w8, #96
	cset	w0, eq
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_port_has_stv0367
.subsections_via_symbols
