	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function srpt_event_handler
_srpt_event_handler:                    ## @srpt_event_handler
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	8(%rsi), %rdi
	movq	_srpt_client@GOTPCREL(%rip), %rsi
	callq	_ib_get_client_data
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r14
	movq	(%rax), %rdi
	cmpq	8(%rbx), %rdi
	je	LBB0_2
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	(%rbx), %r15d
	addq	$8, %rdi
	callq	_dev_name
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_pr_debug
	movl	(%rbx), %edx
	leal	-130(%rdx), %eax
	cmpl	$5, %eax
	jae	LBB0_3
LBB0_10:
	movslq	4(%rbx), %rcx
	leaq	-1(%rcx), %rsi
	movq	(%r14), %rax
	movq	(%rax), %r8
	cmpq	%rsi, %r8
	jbe	LBB0_14
## %bb.11:
	movq	8(%r14), %rax
	leaq	(%rsi,%rsi,2), %rcx
	cmpl	$0, 8(%rax,%rcx,4)
	jne	LBB0_7
## %bb.12:
	cmpl	$0, 4(%rax,%rcx,4)
	jne	LBB0_7
## %bb.13:
	leaq	(%rax,%rcx,4), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_schedule_work                  ## TAILCALL
LBB0_3:
	cmpl	$128, %edx
	je	LBB0_10
## %bb.4:
	cmpl	$129, %edx
	jne	LBB0_15
## %bb.5:
	movslq	4(%rbx), %rcx
	leaq	-1(%rcx), %rax
	movq	(%r14), %rdx
	movq	(%rdx), %r8
	cmpq	%rax, %r8
	jbe	LBB0_8
## %bb.6:
	movq	8(%r14), %rcx
	leaq	(%rax,%rax,2), %rax
	movq	$0, 4(%rcx,%rax,4)
	jmp	LBB0_7
LBB0_14:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
                                        ## kill: def $edx killed $edx killed $rdx
LBB0_9:
                                        ## kill: def $ecx killed $ecx killed $rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN                           ## TAILCALL
LBB0_15:
	leaq	L_.str.2(%rip), %rdi
	movl	%edx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	$129, %edx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_srpt_client,4,2                ## @srpt_client
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ASYNC event= %d on device= %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"event %d: port_num %d out of range 1..%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"received unrecognized IB event %d\n"

	.no_dead_strip	_srpt_event_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function srpt_event_handler
_srpt_event_handler:                    ; @srpt_event_handler
	.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	x20, x1
	ldr	x0, [x1, #8]
Lloh0:
	adrp	x1, _srpt_client@GOTPAGE
Lloh1:
	ldr	x1, [x1, _srpt_client@GOTPAGEOFF]
	bl	_ib_get_client_data
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.eq	LBB0_3
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
LBB0_3:
	ldr	w21, [x20]
	add	x0, x8, #8
	bl	_dev_name
	mov	x2, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_pr_debug
	ldr	w2, [x20]
	sub	w8, w2, #130
	cmp	w8, #5
	b.hs	LBB0_8
LBB0_4:
	ldrsw	x3, [x20, #4]
	sub	x8, x3, #1
	ldr	x9, [x19]
	ldr	x4, [x9]
	cmp	x4, x8
	b.ls	LBB0_12
; %bb.5:
	ldr	x9, [x19, #8]
	mov	w10, #12
	madd	x10, x8, x10, x9
	ldr	w10, [x10, #8]
	cbnz	w10, LBB0_2
; %bb.6:
	mov	w10, #12
	madd	x10, x8, x10, x9
	ldr	w10, [x10, #4]
	cbnz	w10, LBB0_2
; %bb.7:
	mov	w10, #12
	madd	x0, x8, x10, x9
	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	_schedule_work
LBB0_8:
	cmp	w2, #128
	b.eq	LBB0_4
; %bb.9:
	cmp	w2, #129
	b.ne	LBB0_14
; %bb.10:
	ldrsw	x3, [x20, #4]
	sub	x8, x3, #1
	ldr	x9, [x19]
	ldr	x4, [x9]
	cmp	x4, x8
	b.ls	LBB0_15
; %bb.11:
	ldr	x9, [x19, #8]
	mov	w10, #12
	madd	x8, x8, x10, x9
	stp	wzr, wzr, [x8, #4]
	b	LBB0_2
LBB0_12:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
LBB0_13:
                                        ; kill: def $w3 killed $w3 killed $x3
	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	_WARN
LBB0_14:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x2
	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	_pr_err
LBB0_15:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	w2, #129
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_srpt_client,4,2                ; @srpt_client
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ASYNC event= %d on device= %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"event %d: port_num %d out of range 1..%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"received unrecognized IB event %d\n"

	.no_dead_strip	_srpt_event_handler
.subsections_via_symbols
