	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function siw_netdev_event
_siw_netdev_event:                      ## @siw_netdev_event
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rdi
	movq	%rsi, %r12
	callq	_netdev_notifier_info_to_dev
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	movq	%r12, %rdx
	callq	_dev_dbg
	movq	%rbx, %rdi
	callq	_dev_net
	cmpq	_init_net@GOTPCREL(%rip), %rax
	jne	LBB0_12
## %bb.1:
	movq	_RDMA_DRIVER_SIW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ib_device_get_by_netdev
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_to_siw_dev
	movq	%rax, %r14
	addq	$-128, %r12
	cmpq	$6, %r12
	ja	LBB0_11
## %bb.3:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r12,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_4:
	movq	_IB_PORT_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_IB_EVENT_PORT_ACTIVE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	%r14, %rdi
	callq	_ib_unregister_device_queued
	jmp	LBB0_11
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_siw_dbg
	jmp	LBB0_11
LBB0_5:
	movq	%r14, %rdi
	callq	_siw_device_goes_down
	jmp	LBB0_11
LBB0_6:
	movq	_IB_PORT_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_IB_EVENT_PORT_ERR@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_IB_EVENT_LID_CHANGE@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_siw_port_event
LBB0_11:
	movq	%r14, %rdi
	callq	_ib_device_put
LBB0_12:
	movq	_NOTIFY_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_11
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"siw: event %lu\n"

	.comm	_init_net,4,2                   ## @init_net
	.comm	_NOTIFY_OK,4,2                  ## @NOTIFY_OK
	.comm	_RDMA_DRIVER_SIW,4,2            ## @RDMA_DRIVER_SIW
	.comm	_IB_PORT_ACTIVE,4,2             ## @IB_PORT_ACTIVE
	.comm	_IB_EVENT_PORT_ACTIVE,4,2       ## @IB_EVENT_PORT_ACTIVE
	.comm	_IB_PORT_DOWN,4,2               ## @IB_PORT_DOWN
	.comm	_IB_EVENT_PORT_ERR,4,2          ## @IB_EVENT_PORT_ERR
L_.str.1:                               ## @.str.1
	.asciz	"unexpected NETDEV_REGISTER event\n"

	.comm	_IB_EVENT_LID_CHANGE,4,2        ## @IB_EVENT_LID_CHANGE
	.no_dead_strip	_siw_netdev_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function siw_netdev_event
_siw_netdev_event:                      ; @siw_netdev_event
	.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	x0, x2
	mov	x20, x1
	bl	_netdev_notifier_info_to_dev
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg
	mov	x0, x19
	bl	_dev_net
Lloh2:
	adrp	x8, _init_net@GOTPAGE
Lloh3:
	ldr	x8, [x8, _init_net@GOTPAGEOFF]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.1:
Lloh4:
	adrp	x8, _RDMA_DRIVER_SIW@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RDMA_DRIVER_SIW@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ib_device_get_by_netdev
	cbz	x0, LBB0_12
; %bb.2:
	mov	x21, x0
	bl	_to_siw_dev
	mov	x19, x0
	sub	x8, x20, #128
	cmp	x8, #6
	b.hi	LBB0_11
; %bb.3:
Lloh7:
	adrp	x9, lJTI0_0@PAGE
Lloh8:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
Lloh9:
	adrp	x8, _IB_PORT_ACTIVE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IB_PORT_ACTIVE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #4]
Lloh12:
	adrp	x8, _IB_EVENT_PORT_ACTIVE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IB_EVENT_PORT_ACTIVE@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
	mov	x0, x19
	bl	_ib_unregister_device_queued
	b	LBB0_11
LBB0_6:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_siw_dbg
	b	LBB0_11
LBB0_7:
	mov	x0, x19
	bl	_siw_device_goes_down
	b	LBB0_11
LBB0_8:
Lloh16:
	adrp	x8, _IB_PORT_DOWN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IB_PORT_DOWN@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x19, #4]
Lloh19:
	adrp	x8, _IB_EVENT_PORT_ERR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IB_EVENT_PORT_ERR@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh21:
	adrp	x8, _IB_EVENT_LID_CHANGE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IB_EVENT_LID_CHANGE@GOTPAGEOFF]
LBB0_10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #1
	bl	_siw_port_event
LBB0_11:
	mov	x0, x19
	bl	_ib_device_put
LBB0_12:
Lloh23:
	adrp	x8, _NOTIFY_OK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NOTIFY_OK@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"siw: event %lu\n"

	.comm	_init_net,4,2                   ; @init_net
	.comm	_NOTIFY_OK,4,2                  ; @NOTIFY_OK
	.comm	_RDMA_DRIVER_SIW,4,2            ; @RDMA_DRIVER_SIW
	.comm	_IB_PORT_ACTIVE,4,2             ; @IB_PORT_ACTIVE
	.comm	_IB_EVENT_PORT_ACTIVE,4,2       ; @IB_EVENT_PORT_ACTIVE
	.comm	_IB_PORT_DOWN,4,2               ; @IB_PORT_DOWN
	.comm	_IB_EVENT_PORT_ERR,4,2          ; @IB_EVENT_PORT_ERR
l_.str.1:                               ; @.str.1
	.asciz	"unexpected NETDEV_REGISTER event\n"

	.comm	_IB_EVENT_LID_CHANGE,4,2        ; @IB_EVENT_LID_CHANGE
	.no_dead_strip	_siw_netdev_event
.subsections_via_symbols
