	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwch_event_handler
_iwch_event_handler:                    ## @iwch_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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r12
	testq	%r12, %r12
	je	LBB0_9
## %bb.1:
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%r12, %rdi
	callq	_rdev_to_iwch_dev
	addl	$-128, %ebx
	cmpl	$5, %ebx
	ja	LBB0_9
## %bb.2:
	movq	%rax, %r14
	movq	_IB_EVENT_PORT_ERR@GOTPCREL(%rip), %rax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_7:
	movq	_CXIO_ERROR_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	xorl	%eax, %eax
	callq	_synchronize_net
	movq	_IB_EVENT_DEVICE_FATAL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	movq	_IB_EVENT_PORT_ACTIVE@GOTPCREL(%rip), %rax
LBB0_8:
	incl	%r15d
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	%r14, -48(%rbp)
	movl	%r15d, -56(%rbp)
	leaq	-56(%rbp), %rdi
	callq	_ib_dispatch_event
	jmp	LBB0_9
LBB0_4:
	movq	%r14, %rdi
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_disable_dbs                    ## TAILCALL
LBB0_5:
	movq	%r14, %rdi
	movl	$1, %esi
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_enable_dbs                     ## TAILCALL
LBB0_6:
	movq	%r14, %rdi
	callq	_disable_dbs
	leaq	-56(%rbp), %rdi
	movl	$2, %esi
	callq	_get_random_bytes
	movzwl	-56(%rbp), %edi
	andl	$1023, %edi                     ## imm = 0x3FF
	addq	$1000, %rdi                     ## imm = 0x3E8
	addq	$4, %r14
	callq	_usecs_to_jiffies
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_schedule_delayed_work
LBB0_9:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_3
	.long	L0_0_set_8
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_CXIO_ERROR_FATAL,4,2           ## @CXIO_ERROR_FATAL
	.comm	_IB_EVENT_DEVICE_FATAL,4,2      ## @IB_EVENT_DEVICE_FATAL
	.comm	_IB_EVENT_PORT_ERR,4,2          ## @IB_EVENT_PORT_ERR
	.comm	_IB_EVENT_PORT_ACTIVE,4,2       ## @IB_EVENT_PORT_ACTIVE
	.no_dead_strip	_iwch_event_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwch_event_handler
_iwch_event_handler:                    ; @iwch_event_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x21, [x0]
	cbz	x21, LBB0_9
; %bb.1:
	mov	x20, x2
	mov	x22, x1
	mov	x0, x21
	bl	_rdev_to_iwch_dev
	sub	w9, w22, #128
	cmp	w9, #5
	b.hi	LBB0_9
; %bb.2:
	mov	x19, x0
Lloh0:
	adrp	x8, _IB_EVENT_PORT_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_EVENT_PORT_ERR@GOTPAGEOFF]
Lloh2:
	adrp	x10, lJTI0_0@PAGE
Lloh3:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_3
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_3:
Lloh4:
	adrp	x8, _CXIO_ERROR_FATAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CXIO_ERROR_FATAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x21]
	bl	_synchronize_net
Lloh7:
	adrp	x8, _IB_EVENT_DEVICE_FATAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IB_EVENT_DEVICE_FATAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _IB_EVENT_PORT_ACTIVE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IB_EVENT_PORT_ACTIVE@GOTPAGEOFF]
LBB0_5:
	add	w9, w20, #1
	ldr	w8, [x8]
	str	w8, [sp, #24]
	str	x19, [sp, #16]
	str	w9, [sp, #8]
	add	x0, sp, #8
	bl	_ib_dispatch_event
	b	LBB0_9
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_disable_dbs
LBB0_7:
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_enable_dbs
LBB0_8:
	mov	x0, x19
	bl	_disable_dbs
	add	x0, sp, #8
	mov	w1, #2
	bl	_get_random_bytes
	ldrh	w8, [sp, #8]
	and	x8, x8, #0x3ff
	add	x0, x8, #1000
	add	x19, x19, #4
	bl	_usecs_to_jiffies
	mov	x1, x0
	mov	x0, x19
	bl	_schedule_delayed_work
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
                                        ; -- End function
	.comm	_CXIO_ERROR_FATAL,4,2           ; @CXIO_ERROR_FATAL
	.comm	_IB_EVENT_DEVICE_FATAL,4,2      ; @IB_EVENT_DEVICE_FATAL
	.comm	_IB_EVENT_PORT_ERR,4,2          ; @IB_EVENT_PORT_ERR
	.comm	_IB_EVENT_PORT_ACTIVE,4,2       ; @IB_EVENT_PORT_ACTIVE
	.no_dead_strip	_iwch_event_handler
.subsections_via_symbols
