	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bpq_device_event
_bpq_device_event:                      ## @bpq_device_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdx, %rdi
	callq	_dev_net
	cmpq	_init_net@GOTPCREL(%rip), %rax
	je	LBB0_1
LBB0_11:
	movq	_NOTIFY_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	%rbx, %rdi
	callq	_dev_is_ethdev
	testl	%eax, %eax
	je	LBB0_11
## %bb.2:
	cmpq	$130, %r14
	je	LBB0_7
## %bb.3:
	cmpq	$129, %r14
	je	LBB0_9
## %bb.4:
	cmpq	$128, %r14
	jne	LBB0_11
## %bb.5:
	movq	%rbx, %rdi
	callq	_bpq_get_ax25_dev
	testq	%rax, %rax
	jne	LBB0_11
## %bb.6:
	movq	%rbx, %rdi
	callq	_bpq_new_device
	jmp	LBB0_11
LBB0_7:
	movq	%rbx, %rdi
	callq	_bpq_get_ax25_dev
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	%rax, %rdi
	callq	_dev_close
	jmp	LBB0_11
LBB0_9:
	movq	%rbx, %rdi
	callq	_bpq_get_ax25_dev
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%rax, %rdi
	callq	_bpq_free_device
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_init_net,4,2                   ## @init_net
	.comm	_NOTIFY_DONE,4,2                ## @NOTIFY_DONE
	.no_dead_strip	_bpq_device_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bpq_device_event
_bpq_device_event:                      ; @bpq_device_event
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x1
	mov	x0, x2
	bl	_dev_net
Lloh0:
	adrp	x8, _init_net@GOTPAGE
Lloh1:
	ldr	x8, [x8, _init_net@GOTPAGEOFF]
	cmp	x0, x8
	b.eq	LBB0_2
LBB0_1:
Lloh2:
	adrp	x8, _NOTIFY_DONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NOTIFY_DONE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x0, x19
	bl	_dev_is_ethdev
	cbz	w0, LBB0_1
; %bb.3:
	cmp	x20, #130
	b.eq	LBB0_8
; %bb.4:
	cmp	x20, #129
	b.eq	LBB0_10
; %bb.5:
	cmp	x20, #128
	b.ne	LBB0_1
; %bb.6:
	mov	x0, x19
	bl	_bpq_get_ax25_dev
	cbnz	x0, LBB0_1
; %bb.7:
	mov	x0, x19
	bl	_bpq_new_device
	b	LBB0_1
LBB0_8:
	mov	x0, x19
	bl	_bpq_get_ax25_dev
	cbz	x0, LBB0_1
; %bb.9:
	bl	_dev_close
	b	LBB0_1
LBB0_10:
	mov	x0, x19
	bl	_bpq_get_ax25_dev
	cbz	x0, LBB0_1
; %bb.11:
	bl	_bpq_free_device
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_init_net,4,2                   ; @init_net
	.comm	_NOTIFY_DONE,4,2                ; @NOTIFY_DONE
	.no_dead_strip	_bpq_device_event
.subsections_via_symbols
