	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx18_default
_cx18_default:                          ## @cx18_default
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%r8, %r14
	movl	%ecx, %ebx
	movq	%rsi, %rdi
	callq	_fh2id
	cmpl	$128, %ebx
	jne	LBB0_4
## %bb.1:
	movq	(%rax), %rdi
	movl	(%r14), %eax
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	andl	$1, %eax
	je	LBB0_6
LBB0_5:
	movq	_CX18_HW_GPIO_RESET_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_core@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_reset@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_CX18_GPIO_RESET_Z8F0811@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	callq	_cx18_call_hw
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_4:
	movq	_ENOTTY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CX18_HW_GPIO_RESET_CTRL,4,2    ## @CX18_HW_GPIO_RESET_CTRL
	.comm	_core,4,2                       ## @core
	.comm	_reset,4,2                      ## @reset
	.comm	_CX18_GPIO_RESET_Z8F0811,4,2    ## @CX18_GPIO_RESET_Z8F0811
	.comm	_ENOTTY,8,3                     ## @ENOTTY
	.no_dead_strip	_cx18_default
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx18_default
_cx18_default:                          ; @cx18_default
	.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, x4
	mov	x20, x3
	mov	x0, x1
	bl	_fh2id
	cmp	w20, #128
	b.ne	LBB0_4
; %bb.1:
	ldr	w8, [x19]
	and	w9, w8, #0x1
	cmp	w8, #0
	ccmp	w9, #0, #0, ne
	b.eq	LBB0_3
; %bb.2:
	ldr	x0, [x0]
Lloh0:
	adrp	x8, _CX18_HW_GPIO_RESET_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CX18_HW_GPIO_RESET_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _core@GOTPAGE
Lloh4:
	ldr	x8, [x8, _core@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _reset@GOTPAGE
Lloh7:
	ldr	x8, [x8, _reset@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x8, _CX18_GPIO_RESET_Z8F0811@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CX18_GPIO_RESET_Z8F0811@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	bl	_cx18_call_hw
LBB0_3:
	mov	x0, #0
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _ENOTTY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOTTY@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	neg	x0, x8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CX18_HW_GPIO_RESET_CTRL,4,2    ; @CX18_HW_GPIO_RESET_CTRL
	.comm	_core,4,2                       ; @core
	.comm	_reset,4,2                      ; @reset
	.comm	_CX18_GPIO_RESET_Z8F0811,4,2    ; @CX18_GPIO_RESET_Z8F0811
	.comm	_ENOTTY,8,3                     ; @ENOTTY
	.no_dead_strip	_cx18_default
.subsections_via_symbols
