	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_host_ready
_set_host_ready:                        ## @set_host_ready
	.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, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	movq	_CHV_DEVICE_ID@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.1:
	movl	8(%rax), %ecx
	movq	_REVISION_ID_CHT_A0@GOTPCREL(%rip), %rax
	movl	$129, %edx
	movq	_IPC_REG_HOST_COMM@GOTPCREL(%rip), %rbx
	cmpl	(%rax), %ecx
	je	LBB0_9
## %bb.2:
	movq	_REVISION_ID_SI_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ecx, %eax
	movq	_REVISION_ID_CHT_Ax_SI@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %eax
	je	LBB0_9
## %bb.3:
	movq	_REVISION_ID_CHT_B0@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_7
## %bb.4:
	movq	_REVISION_ID_CHT_Bx_SI@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_7
## %bb.5:
	movq	_REVISION_ID_CHT_Kx_SI@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_7
## %bb.6:
	movq	_REVISION_ID_CHT_Dx_SI@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_7
## %bb.10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movq	_IPC_REG_PIMR_BXT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_ish_reg_read
	movq	_IPC_PIMR_INT_EN_BIT_BXT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_IPC_HOST2ISH_BUSYCLEAR_MASK_BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
LBB0_9:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ish_reg_write                  ## TAILCALL
LBB0_7:
	movq	_IPC_REG_HOST_COMM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_ish_reg_read
	movl	%eax, %edx
	movq	_IPC_HOSTCOMM_INT_EN_BIT_CHV_AB@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	orl	$129, %edx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_CHV_DEVICE_ID,8,3              ## @CHV_DEVICE_ID
	.comm	_REVISION_ID_CHT_A0,4,2         ## @REVISION_ID_CHT_A0
	.comm	_REVISION_ID_SI_MASK,4,2        ## @REVISION_ID_SI_MASK
	.comm	_REVISION_ID_CHT_Ax_SI,4,2      ## @REVISION_ID_CHT_Ax_SI
	.comm	_IPC_REG_HOST_COMM,4,2          ## @IPC_REG_HOST_COMM
	.comm	_REVISION_ID_CHT_B0,4,2         ## @REVISION_ID_CHT_B0
	.comm	_REVISION_ID_CHT_Bx_SI,4,2      ## @REVISION_ID_CHT_Bx_SI
	.comm	_REVISION_ID_CHT_Kx_SI,4,2      ## @REVISION_ID_CHT_Kx_SI
	.comm	_REVISION_ID_CHT_Dx_SI,4,2      ## @REVISION_ID_CHT_Dx_SI
	.comm	_IPC_HOSTCOMM_INT_EN_BIT_CHV_AB,4,2 ## @IPC_HOSTCOMM_INT_EN_BIT_CHV_AB
	.comm	_IPC_REG_PIMR_BXT,4,2           ## @IPC_REG_PIMR_BXT
	.comm	_IPC_PIMR_INT_EN_BIT_BXT,4,2    ## @IPC_PIMR_INT_EN_BIT_BXT
	.comm	_IPC_HOST2ISH_BUSYCLEAR_MASK_BIT,4,2 ## @IPC_HOST2ISH_BUSYCLEAR_MASK_BIT
	.no_dead_strip	_set_host_ready
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_host_ready
_set_host_ready:                        ; @set_host_ready
	.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, x0
	ldr	x8, [x0]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _CHV_DEVICE_ID@GOTPAGE
Lloh1:
	ldr	x10, [x10, _CHV_DEVICE_ID@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.1:
	ldr	w9, [x8, #8]
Lloh3:
	adrp	x8, _REVISION_ID_CHT_A0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REVISION_ID_CHT_A0@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w9, w8
	b.ne	LBB0_4
; %bb.2:
	mov	w2, #129
Lloh6:
	adrp	x20, _IPC_REG_HOST_COMM@GOTPAGE
Lloh7:
	ldr	x20, [x20, _IPC_REG_HOST_COMM@GOTPAGEOFF]
	b	LBB0_10
LBB0_3:
Lloh8:
	adrp	x20, _IPC_REG_PIMR_BXT@GOTPAGE
Lloh9:
	ldr	x20, [x20, _IPC_REG_PIMR_BXT@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ish_reg_read
Lloh10:
	adrp	x8, _IPC_PIMR_INT_EN_BIT_BXT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IPC_PIMR_INT_EN_BIT_BXT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh13:
	adrp	x9, _IPC_HOST2ISH_BUSYCLEAR_MASK_BIT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IPC_HOST2ISH_BUSYCLEAR_MASK_BIT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	bic	w2, w8, w9
	b	LBB0_10
LBB0_4:
Lloh16:
	adrp	x8, _REVISION_ID_SI_MASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _REVISION_ID_SI_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	and	w8, w8, w9
Lloh19:
	adrp	x10, _REVISION_ID_CHT_Ax_SI@GOTPAGE
Lloh20:
	ldr	x10, [x10, _REVISION_ID_CHT_Ax_SI@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
Lloh22:
	adrp	x20, _IPC_REG_HOST_COMM@GOTPAGE
Lloh23:
	ldr	x20, [x20, _IPC_REG_HOST_COMM@GOTPAGEOFF]
	cmp	w8, w10
	b.ne	LBB0_6
; %bb.5:
	mov	w2, #129
	b	LBB0_10
LBB0_6:
Lloh24:
	adrp	x10, _REVISION_ID_CHT_B0@GOTPAGE
Lloh25:
	ldr	x10, [x10, _REVISION_ID_CHT_B0@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	cmp	w9, w10
	b.eq	LBB0_9
; %bb.7:
Lloh27:
	adrp	x9, _REVISION_ID_CHT_Bx_SI@GOTPAGE
Lloh28:
	ldr	x9, [x9, _REVISION_ID_CHT_Bx_SI@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
Lloh30:
	adrp	x10, _REVISION_ID_CHT_Kx_SI@GOTPAGE
Lloh31:
	ldr	x10, [x10, _REVISION_ID_CHT_Kx_SI@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
Lloh33:
	adrp	x11, _REVISION_ID_CHT_Dx_SI@GOTPAGE
Lloh34:
	ldr	x11, [x11, _REVISION_ID_CHT_Dx_SI@GOTPAGEOFF]
Lloh35:
	ldr	w11, [x11]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	ccmp	w8, w11, #4, ne
	b.eq	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ish_reg_read
Lloh36:
	adrp	x8, _IPC_HOSTCOMM_INT_EN_BIT_CHV_AB@GOTPAGE
Lloh37:
	ldr	x8, [x8, _IPC_HOSTCOMM_INT_EN_BIT_CHV_AB@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	orr	w8, w0, w8
	mov	w9, #129
	orr	w2, w8, w9
LBB0_10:
	ldr	w1, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ish_reg_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_CHV_DEVICE_ID,8,3              ; @CHV_DEVICE_ID
	.comm	_REVISION_ID_CHT_A0,4,2         ; @REVISION_ID_CHT_A0
	.comm	_REVISION_ID_SI_MASK,4,2        ; @REVISION_ID_SI_MASK
	.comm	_REVISION_ID_CHT_Ax_SI,4,2      ; @REVISION_ID_CHT_Ax_SI
	.comm	_IPC_REG_HOST_COMM,4,2          ; @IPC_REG_HOST_COMM
	.comm	_REVISION_ID_CHT_B0,4,2         ; @REVISION_ID_CHT_B0
	.comm	_REVISION_ID_CHT_Bx_SI,4,2      ; @REVISION_ID_CHT_Bx_SI
	.comm	_REVISION_ID_CHT_Kx_SI,4,2      ; @REVISION_ID_CHT_Kx_SI
	.comm	_REVISION_ID_CHT_Dx_SI,4,2      ; @REVISION_ID_CHT_Dx_SI
	.comm	_IPC_HOSTCOMM_INT_EN_BIT_CHV_AB,4,2 ; @IPC_HOSTCOMM_INT_EN_BIT_CHV_AB
	.comm	_IPC_REG_PIMR_BXT,4,2           ; @IPC_REG_PIMR_BXT
	.comm	_IPC_PIMR_INT_EN_BIT_BXT,4,2    ; @IPC_PIMR_INT_EN_BIT_BXT
	.comm	_IPC_HOST2ISH_BUSYCLEAR_MASK_BIT,4,2 ; @IPC_HOST2ISH_BUSYCLEAR_MASK_BIT
	.no_dead_strip	_set_host_ready
.subsections_via_symbols
