	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2o_event_register             ## -- Begin function i2o_event_register
	.p2align	4, 0x90
_i2o_event_register:                    ## @i2o_event_register
	.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
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movq	_I2O_TIMEOUT_MESSAGE_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2o_msg_get_wait
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_FIVE_WORD_MSG_SIZE@GOTPCREL(%rip), %rax
	movq	_SGL_OFFSET_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_cpu_to_le32
	movq	24(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	_I2O_CMD_UTIL_EVT_REGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$24, %eax
	movq	_HOST_TID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	shll	$12, %edi
	orl	%eax, %edi
	orl	(%r14), %edi
	callq	_cpu_to_le32
	movq	24(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movl	(%r13), %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%rbx)
	movl	%r12d, %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%rbx)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le32
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_i2o_msg_post
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2O_TIMEOUT_MESSAGE_GET,4,2    ## @I2O_TIMEOUT_MESSAGE_GET
	.comm	_FIVE_WORD_MSG_SIZE,4,2         ## @FIVE_WORD_MSG_SIZE
	.comm	_SGL_OFFSET_0,4,2               ## @SGL_OFFSET_0
	.comm	_I2O_CMD_UTIL_EVT_REGISTER,4,2  ## @I2O_CMD_UTIL_EVT_REGISTER
	.comm	_HOST_TID,4,2                   ## @HOST_TID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2o_event_register             ; -- Begin function i2o_event_register
	.p2align	2
_i2o_event_register:                    ; @i2o_event_register
	.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	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x8, _I2O_TIMEOUT_MESSAGE_GET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2O_TIMEOUT_MESSAGE_GET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2o_msg_get_wait
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	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
	b	_PTR_ERR
LBB0_2:
Lloh3:
	adrp	x8, _FIVE_WORD_MSG_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FIVE_WORD_MSG_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _SGL_OFFSET_0@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SGL_OFFSET_0@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_cpu_to_le32
	ldr	x8, [x21, #24]
	str	x0, [x8]
Lloh9:
	adrp	x8, _I2O_CMD_UTIL_EVT_REGISTER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I2O_CMD_UTIL_EVT_REGISTER@GOTPAGEOFF]
Lloh11:
	adrp	x9, _HOST_TID@GOTPAGE
Lloh12:
	ldr	x9, [x9, _HOST_TID@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	ldr	w9, [x9]
	lsl	w9, w9, #12
	orr	w8, w9, w8, lsl #24
	ldr	w9, [x24]
	orr	w0, w8, w9
	bl	_cpu_to_le32
	ldr	x8, [x21, #24]
	str	x0, [x8, #8]
	ldr	w0, [x23]
	bl	_cpu_to_le32
	str	x0, [x21, #16]
	mov	x0, x22
	bl	_cpu_to_le32
	str	x0, [x21, #8]
	mov	x0, x20
	bl	_cpu_to_le32
	ldr	x8, [x21]
	str	x0, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_i2o_msg_post
	mov	w0, #0
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_I2O_TIMEOUT_MESSAGE_GET,4,2    ; @I2O_TIMEOUT_MESSAGE_GET
	.comm	_FIVE_WORD_MSG_SIZE,4,2         ; @FIVE_WORD_MSG_SIZE
	.comm	_SGL_OFFSET_0,4,2               ; @SGL_OFFSET_0
	.comm	_I2O_CMD_UTIL_EVT_REGISTER,4,2  ; @I2O_CMD_UTIL_EVT_REGISTER
	.comm	_HOST_TID,4,2                   ; @HOST_TID
.subsections_via_symbols
