	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_port_ibevent             ## -- Begin function i40iw_port_ibevent
	.p2align	4, 0x90
_i40iw_port_ibevent:                    ## @i40iw_port_ibevent
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	8(%rdi), %rax
	movq	%rax, -8(%rbp)
	movl	$1, -12(%rbp)
	cmpq	$0, (%rdi)
	jne	LBB0_1
## %bb.2:
	movq	_IB_EVENT_PORT_ERR@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_IB_EVENT_PORT_ACTIVE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, -16(%rbp)
	leaq	-16(%rbp), %rdi
	callq	_ib_dispatch_event
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_EVENT_PORT_ACTIVE,4,2       ## @IB_EVENT_PORT_ACTIVE
	.comm	_IB_EVENT_PORT_ERR,4,2          ## @IB_EVENT_PORT_ERR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_port_ibevent             ; -- Begin function i40iw_port_ibevent
	.p2align	2
_i40iw_port_ibevent:                    ; @i40iw_port_ibevent
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldp	x9, x8, [x0]
	str	x8, [sp, #8]
	mov	w8, #1
	str	w8, [sp, #4]
Lloh0:
	adrp	x8, _IB_EVENT_PORT_ACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_EVENT_PORT_ACTIVE@GOTPAGEOFF]
Lloh2:
	adrp	x10, _IB_EVENT_PORT_ERR@GOTPAGE
Lloh3:
	ldr	x10, [x10, _IB_EVENT_PORT_ERR@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x10, x8, eq
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, sp
	bl	_ib_dispatch_event
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_EVENT_PORT_ACTIVE,4,2       ; @IB_EVENT_PORT_ACTIVE
	.comm	_IB_EVENT_PORT_ERR,4,2          ; @IB_EVENT_PORT_ERR
.subsections_via_symbols
