	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_reg_device_uevent              ## -- Begin function reg_device_uevent
	.p2align	4, 0x90
_reg_device_uevent:                     ## @reg_device_uevent
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rcu_read_lock
	xorl	%eax, %eax
	callq	_get_last_request
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpl	$0, 4(%rax)
	je	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	jmp	LBB0_4
LBB0_2:
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdi
	movl	$2, %edx
	callq	_memcpy
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movl	-32(%rbp), %edx
	movl	-28(%rbp), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_add_uevent_var
	movl	%eax, %ebx
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"COUNTRY=%c%c"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_reg_device_uevent              ; -- Begin function reg_device_uevent
	.p2align	2
_reg_device_uevent:                     ; @reg_device_uevent
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	bl	_rcu_read_lock
	bl	_get_last_request
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_3
LBB0_2:
	bl	_rcu_read_unlock
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	ldr	w1, [x0]
	mov	x0, sp
	mov	w2, #2
	bl	_memcpy
	bl	_rcu_read_unlock
	ldp	w2, w3, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_add_uevent_var
LBB0_4:
	ldr	x8, [sp, #8]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"COUNTRY=%c%c"

.subsections_via_symbols
