	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function typhoon_hello
_typhoon_hello:                         ## @typhoon_hello
	.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	%rdi, %rbx
	callq	_spin_trylock
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	16(%rbx), %rdi
	movq	16(%rbx), %r14
	addq	24(%rbx), %r14
	movl	$1, %esi
	callq	_typhoon_inc_cmd_index
	movq	_TYPHOON_CMD_HELLO_RESP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_INIT_COMMAND_NO_RESPONSE
	xorl	%eax, %eax
	callq	_wmb
	movq	16(%rbx), %rdi
	movq	_TYPHOON_REG_CMD_READY@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	callq	_iowrite32
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPHOON_CMD_HELLO_RESP,4,2     ## @TYPHOON_CMD_HELLO_RESP
	.comm	_TYPHOON_REG_CMD_READY,8,3      ## @TYPHOON_REG_CMD_READY
	.no_dead_strip	_typhoon_hello
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function typhoon_hello
_typhoon_hello:                         ; @typhoon_hello
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_spin_trylock
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19, #24]
	mov	x20, x19
	ldr	x9, [x20, #16]!
	add	x21, x9, x8
	mov	x0, x20
	mov	w1, #1
	bl	_typhoon_inc_cmd_index
Lloh0:
	adrp	x8, _TYPHOON_CMD_HELLO_RESP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TYPHOON_CMD_HELLO_RESP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_INIT_COMMAND_NO_RESPONSE
	bl	_wmb
	ldr	x0, [x20]
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _TYPHOON_REG_CMD_READY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TYPHOON_REG_CMD_READY@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_iowrite32
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPHOON_CMD_HELLO_RESP,4,2     ; @TYPHOON_CMD_HELLO_RESP
	.comm	_TYPHOON_REG_CMD_READY,8,3      ; @TYPHOON_REG_CMD_READY
	.no_dead_strip	_typhoon_hello
.subsections_via_symbols
