	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sendmsg
_sendmsg:                               ## @sendmsg
	.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	%r8, %r15
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	$4000, %esi                     ## imm = 0xFA0
	callq	_waitforHIA
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	_ISAR_CTRL_H@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r13d, %ecx
	callq	*8(%rbx)
	movq	_ISAR_CTRL_L@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r12d, %ecx
	callq	*8(%rbx)
	movq	_ISAR_WADR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	*8(%rbx)
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.3:
	testq	%r15, %r15
	je	LBB0_7
## %bb.4:
	movq	_ISAR_MBOX@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	(%r15), %ecx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	*8(%rbx)
	cmpl	$2, %r12d
	jl	LBB0_7
## %bb.5:
	movl	%r12d, %r12d
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edx
	movl	(%r15,%r14,4), %ecx
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	*8(%rbx)
	incq	%r14
	cmpq	%r14, %r12
	jne	LBB0_6
LBB0_7:
	movq	_ISAR_HIS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %r15d
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	*8(%rbx)
	movq	%rbx, %rdi
	movl	$10000, %esi                    ## imm = 0x2710
	callq	_waitforHIA
	jmp	LBB0_8
LBB0_1:
	xorl	%r15d, %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISAR_CTRL_H,4,2                ## @ISAR_CTRL_H
	.comm	_ISAR_CTRL_L,4,2                ## @ISAR_CTRL_L
	.comm	_ISAR_WADR,4,2                  ## @ISAR_WADR
	.comm	_ISAR_MBOX,4,2                  ## @ISAR_MBOX
	.comm	_ISAR_HIS,4,2                   ## @ISAR_HIS
	.comm	_L1_DEB_HSCX,4,2                ## @L1_DEB_HSCX
	.comm	_L1_DEB_HSCX_FIFO,4,2           ## @L1_DEB_HSCX_FIFO
	.no_dead_strip	_sendmsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sendmsg
_sendmsg:                               ; @sendmsg
	.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	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	mov	w1, #4000
	bl	_waitforHIA
	cbz	w0, LBB0_7
; %bb.1:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _ISAR_CTRL_H@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ISAR_CTRL_H@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
	mov	x0, x19
	mov	w1, #0
	mov	x3, x23
	blr	x8
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _ISAR_CTRL_L@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ISAR_CTRL_L@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x9]
	mov	x0, x19
	mov	w1, #0
	mov	x3, x22
	blr	x8
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _ISAR_WADR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ISAR_WADR@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x9]
	mov	x0, x19
	mov	w1, #0
	mov	w3, #0
	blr	x8
	cbz	w22, LBB0_6
; %bb.2:
	cbz	x21, LBB0_6
; %bb.3:
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x23, _ISAR_MBOX@GOTPAGE
Lloh10:
	ldr	x23, [x23, _ISAR_MBOX@GOTPAGEOFF]
	ldr	w2, [x23]
	ldr	w3, [x21]
	mov	x0, x19
	mov	w1, #1
	blr	x8
	cmp	w22, #2
	b.lt	LBB0_6
; %bb.4:
	mov	w8, w22
	add	x21, x21, #4
	sub	x22, x8, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w2, [x23]
	ldr	w3, [x21], #4
	mov	x0, x19
	mov	w1, #2
	blr	x8
	subs	x22, x22, #1
	b.ne	LBB0_5
LBB0_6:
	ldr	x8, [x19, #8]
Lloh11:
	adrp	x9, _ISAR_HIS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ISAR_HIS@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x9]
	mov	w21, #1
	mov	x0, x19
	mov	w1, #1
	mov	x3, x20
	blr	x8
	mov	x0, x19
	mov	w1, #10000
	bl	_waitforHIA
	b	LBB0_8
LBB0_7:
	mov	w21, #0
LBB0_8:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ISAR_CTRL_H,4,2                ; @ISAR_CTRL_H
	.comm	_ISAR_CTRL_L,4,2                ; @ISAR_CTRL_L
	.comm	_ISAR_WADR,4,2                  ; @ISAR_WADR
	.comm	_ISAR_MBOX,4,2                  ; @ISAR_MBOX
	.comm	_ISAR_HIS,4,2                   ; @ISAR_HIS
	.comm	_L1_DEB_HSCX,4,2                ; @L1_DEB_HSCX
	.comm	_L1_DEB_HSCX_FIFO,4,2           ; @L1_DEB_HSCX_FIFO
	.no_dead_strip	_sendmsg
.subsections_via_symbols
