	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function udev_input_handle_hotplug
_udev_input_handle_hotplug:             ## @udev_input_handle_hotplug
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_udev_monitor_receive_device
	testq	%rax, %rax
	je	LBB0_18
## %bb.1:
	movq	%rax, %r15
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_udev_device_get_property_value
	movq	%rax, %r14
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_udev_device_get_property_value
	movq	%rax, %r12
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_udev_device_get_property_value
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_udev_device_get_action
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_udev_device_get_devnode
	movq	%rax, %rbx
	testq	%r14, %r14
	je	LBB0_5
## %bb.2:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:
	movq	%rbx, %r13
	movq	_udev_handle_keyboard@GOTPCREL(%rip), %rax
	movq	_UDEV_INPUT_KEYBOARD@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_5:
	testq	%r12, %r12
	je	LBB0_9
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.8:
	movq	%rbx, %r13
	movq	_udev_handle_mouse@GOTPCREL(%rip), %rax
	movq	_UDEV_INPUT_MOUSE@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	testq	%r13, %r13
	je	LBB0_17
## %bb.10:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_17
## %bb.11:
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.12:
	movq	%rbx, %r13
	movq	_udev_handle_mouse@GOTPCREL(%rip), %rax
	movq	_UDEV_INPUT_TOUCHPAD@GOTPCREL(%rip), %rcx
LBB0_13:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rax), %r14d
	movl	(%rcx), %r12d
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	_g_dev_type_str@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r12,4), %esi
	leaq	L_.str.5(%rip), %rdi
	movq	%r13, %rbx
	movq	%r13, %rdx
	callq	_RARCH_LOG
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movq	%r13, %rdx
	movl	%r14d, %ecx
	callq	_udev_input_add_device
	jmp	LBB0_17
LBB0_15:
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	%r13, %rbx
	movq	_g_dev_type_str@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r12,4), %esi
	leaq	L_.str.7(%rip), %rdi
	movq	%r13, %rdx
	callq	_RARCH_LOG
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_udev_input_remove_device
LBB0_17:
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_udev_device_unref              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UDEV_INPUT_KEYBOARD,4,2        ## @UDEV_INPUT_KEYBOARD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ID_INPUT_KEY"

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

L_.str.2:                               ## @.str.2
	.asciz	"ID_INPUT_TOUCHPAD"

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

	.comm	_udev_handle_keyboard,4,2       ## @udev_handle_keyboard
	.comm	_UDEV_INPUT_MOUSE,4,2           ## @UDEV_INPUT_MOUSE
	.comm	_udev_handle_mouse,4,2          ## @udev_handle_mouse
	.comm	_UDEV_INPUT_TOUCHPAD,4,2        ## @UDEV_INPUT_TOUCHPAD
L_.str.4:                               ## @.str.4
	.asciz	"add"

L_.str.5:                               ## @.str.5
	.asciz	"[udev]: Hotplug add %s: %s.\n"

	.comm	_g_dev_type_str,8,3             ## @g_dev_type_str
L_.str.6:                               ## @.str.6
	.asciz	"remove"

L_.str.7:                               ## @.str.7
	.asciz	"[udev]: Hotplug remove %s: %s.\n"

	.no_dead_strip	_udev_input_handle_hotplug
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function udev_input_handle_hotplug
_udev_input_handle_hotplug:             ; @udev_input_handle_hotplug
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	ldr	w0, [x0]
	bl	_udev_monitor_receive_device
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_udev_device_get_property_value
	mov	x25, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_udev_device_get_property_value
	mov	x24, x0
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_udev_device_get_property_value
	mov	x23, x0
	mov	x0, x19
	bl	_udev_device_get_action
	mov	x22, x0
	mov	x0, x19
	bl	_udev_device_get_devnode
	mov	x21, x0
	cbz	x25, LBB0_5
; %bb.2:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x25
	bl	_string_is_equal
	cbz	x0, LBB0_5
; %bb.3:
	cbz	x21, LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _udev_handle_keyboard@GOTPAGE
Lloh9:
	ldr	x8, [x8, _udev_handle_keyboard@GOTPAGEOFF]
Lloh10:
	adrp	x9, _UDEV_INPUT_KEYBOARD@GOTPAGE
Lloh11:
	ldr	x9, [x9, _UDEV_INPUT_KEYBOARD@GOTPAGEOFF]
	b	LBB0_14
LBB0_5:
	cbz	x24, LBB0_10
; %bb.6:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x24
	bl	_string_is_equal
	cbz	x0, LBB0_10
; %bb.7:
	cbz	x21, LBB0_10
; %bb.8:
Lloh14:
	adrp	x8, _udev_handle_mouse@GOTPAGE
Lloh15:
	ldr	x8, [x8, _udev_handle_mouse@GOTPAGEOFF]
Lloh16:
	adrp	x9, _UDEV_INPUT_MOUSE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _UDEV_INPUT_MOUSE@GOTPAGEOFF]
	b	LBB0_14
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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
	cbz	x23, LBB0_18
; %bb.11:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x23
	bl	_string_is_equal
	cbz	x0, LBB0_18
; %bb.12:
	cbz	x21, LBB0_18
; %bb.13:
Lloh20:
	adrp	x8, _udev_handle_mouse@GOTPAGE
Lloh21:
	ldr	x8, [x8, _udev_handle_mouse@GOTPAGEOFF]
Lloh22:
	adrp	x9, _UDEV_INPUT_TOUCHPAD@GOTPAGE
Lloh23:
	ldr	x9, [x9, _UDEV_INPUT_TOUCHPAD@GOTPAGEOFF]
LBB0_14:
	ldr	w24, [x8]
	ldr	w23, [x9]
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_string_is_equal
	cbz	x0, LBB0_16
; %bb.15:
Lloh26:
	adrp	x8, _g_dev_type_str@GOTPAGE
Lloh27:
	ldr	x8, [x8, _g_dev_type_str@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	ldr	w1, [x8, x23, lsl #2]
Lloh29:
	adrp	x0, l_.str.5@PAGE
Lloh30:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x2, x21
	bl	_RARCH_LOG
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	mov	x3, x24
	bl	_udev_input_add_device
	b	LBB0_18
LBB0_16:
Lloh31:
	adrp	x1, l_.str.6@PAGE
Lloh32:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x22
	bl	_string_is_equal
	cbz	x0, LBB0_18
; %bb.17:
Lloh33:
	adrp	x8, _g_dev_type_str@GOTPAGE
Lloh34:
	ldr	x8, [x8, _g_dev_type_str@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	ldr	w1, [x8, x23, lsl #2]
Lloh36:
	adrp	x0, l_.str.7@PAGE
Lloh37:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x2, x21
	bl	_RARCH_LOG
	mov	x0, x20
	mov	x1, x21
	bl	_udev_input_remove_device
LBB0_18:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_udev_device_unref
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_UDEV_INPUT_KEYBOARD,4,2        ; @UDEV_INPUT_KEYBOARD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ID_INPUT_KEY"

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

l_.str.2:                               ; @.str.2
	.asciz	"ID_INPUT_TOUCHPAD"

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

	.comm	_udev_handle_keyboard,4,2       ; @udev_handle_keyboard
	.comm	_UDEV_INPUT_MOUSE,4,2           ; @UDEV_INPUT_MOUSE
	.comm	_udev_handle_mouse,4,2          ; @udev_handle_mouse
	.comm	_UDEV_INPUT_TOUCHPAD,4,2        ; @UDEV_INPUT_TOUCHPAD
l_.str.4:                               ; @.str.4
	.asciz	"add"

l_.str.5:                               ; @.str.5
	.asciz	"[udev]: Hotplug add %s: %s.\n"

	.comm	_g_dev_type_str,8,3             ; @g_dev_type_str
l_.str.6:                               ; @.str.6
	.asciz	"remove"

l_.str.7:                               ; @.str.7
	.asciz	"[udev]: Hotplug remove %s: %s.\n"

	.no_dead_strip	_udev_input_handle_hotplug
.subsections_via_symbols
