	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_otx2_mbox_get_rsp              ## -- Begin function otx2_mbox_get_rsp
	.p2align	4, 0x90
_otx2_mbox_get_rsp:                     ## @otx2_mbox_get_rsp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	16(%rdi), %r9
	movslq	%esi, %rax
	leaq	(%rax,%rax,2), %rax
	movq	(%r9,%rax,8), %r8
	cmpq	8(%r9,%rax,8), %r8
	jne	LBB0_7
## %bb.1:
	testq	%r8, %r8
	jle	LBB0_7
## %bb.2:
	movq	_msgs_offset@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	(%rdi), %rcx
	addq	%rsi, %rcx
	addq	8(%rdi), %rsi
	movq	16(%r9,%rax,8), %rax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	shlq	$4, %rcx
	leaq	(%rax,%rcx), %rdi
	cmpq	%rdx, %rdi
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rax,%rcx), %rcx
	shlq	$4, %rsi
	movq	8(%rax,%rsi), %rsi
	decq	%r8
	jne	LBB0_3
	jmp	LBB0_7
LBB0_4:
	shlq	$4, %rsi
	movq	(%rdx), %rcx
	cmpq	(%rax,%rsi), %rcx
	jne	LBB0_7
## %bb.5:
	addq	%rsi, %rax
	popq	%rbp
	retq
LBB0_7:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_msgs_offset,8,3                ## @msgs_offset
	.comm	_ENODEV,4,2                     ## @ENODEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_otx2_mbox_get_rsp              ; -- Begin function otx2_mbox_get_rsp
	.p2align	2
_otx2_mbox_get_rsp:                     ; @otx2_mbox_get_rsp
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x10, [x0, #16]
	mov	w8, #24
	smaddl	x9, w1, w8, x10
	ldp	x8, x9, [x9]
	cmp	x8, x9
	ccmp	x8, #1, #8, eq
	b.lt	LBB0_6
; %bb.1:
	sxtw	x12, w1
Lloh0:
	adrp	x9, _msgs_offset@GOTPAGE
Lloh1:
	ldr	x9, [x9, _msgs_offset@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldp	x11, x13, [x0]
	add	x11, x11, x9
	add	x9, x9, x13
	mov	w13, #24
	madd	x10, x12, x13, x10
	ldr	x10, [x10, #16]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x11, x10, x11, lsl #4
	cmp	x11, x2
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x11, [x11, #8]
	add	x9, x10, x9, lsl #4
	ldr	x9, [x9, #8]
	subs	x8, x8, #1
	b.ne	LBB0_2
	b	LBB0_6
LBB0_4:
	add	x0, x10, x9, lsl #4
	ldr	x8, [x2]
	ldr	x9, [x0]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ret
LBB0_6:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_msgs_offset,8,3                ; @msgs_offset
	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
