	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_udev_event
_process_udev_event:                    ## @process_udev_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	_mon@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_udev_monitor_receive_device
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_udev_device_get_sysname
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_udev_device_get_action
	movq	%rax, %r12
	movq	_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%rbx, %rdi
	callq	_udev_device_get_subsystem
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edi
	movl	%eax, %edx
	movq	%r15, %rcx
	movq	%r12, %r8
	callq	_syslog
	testq	%r15, %r15
	je	LBB0_5
## %bb.2:
	testq	%r12, %r12
	je	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_update_node_desc
LBB0_5:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_udev_device_unref              ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mon,4,2                        ## @mon
	.comm	_LOG_INFO,4,2                   ## @LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device event: %s, %s, %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"add"

	.no_dead_strip	_process_udev_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_udev_event
_process_udev_event:                    ; @process_udev_event
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
Lloh0:
	adrp	x8, _mon@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mon@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_udev_monitor_receive_device
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	bl	_udev_device_get_sysname
	mov	x21, x0
	mov	x0, x20
	bl	_udev_device_get_action
	mov	x22, x0
Lloh3:
	adrp	x8, _LOG_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LOG_INFO@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	mov	x0, x20
	bl	_udev_device_get_subsystem
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x3, x21
	mov	x4, x22
	bl	_syslog
	cmp	x21, #0
	ccmp	x22, #0, #4, ne
	b.eq	LBB0_4
; %bb.2:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	w2, #4
	bl	_strncmp
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x21
	mov	x1, x19
	mov	w2, #1
	bl	_update_node_desc
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_udev_device_unref
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_mon,4,2                        ; @mon
	.comm	_LOG_INFO,4,2                   ; @LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device event: %s, %s, %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"add"

	.no_dead_strip	_process_udev_event
.subsections_via_symbols
