	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pkt_sysfs_dev_new
_pkt_sysfs_dev_new:                     ## @pkt_sysfs_dev_new
	.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	%rdi, %rbx
	movq	_class_pktcdvd@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	testq	%r14, %r14
	je	LBB0_3
## %bb.1:
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_MKDEV
	movl	24(%rbx), %r9d
	leaq	L_.str(%rip), %r8
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_device_create
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	$0, (%rbx)
LBB0_3:
	movq	(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	_kobj_pkt_type_stat@GOTPCREL(%rip), %rcx
	movq	%rbx, %rdi
	callq	_pkt_kobj_create
	movq	%rax, 16(%rbx)
	movq	(%rbx), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	_kobj_pkt_type_wqueue@GOTPCREL(%rip), %rcx
	movq	%rbx, %rdi
	callq	_pkt_kobj_create
	movq	%rax, 8(%rbx)
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_class_pktcdvd,8,3              ## @class_pktcdvd
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

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

	.comm	_kobj_pkt_type_stat,4,2         ## @kobj_pkt_type_stat
L_.str.2:                               ## @.str.2
	.asciz	"write_queue"

	.comm	_kobj_pkt_type_wqueue,4,2       ## @kobj_pkt_type_wqueue
	.no_dead_strip	_pkt_sysfs_dev_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pkt_sysfs_dev_new
_pkt_sysfs_dev_new:                     ; @pkt_sysfs_dev_new
	.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, x0
Lloh0:
	adrp	x8, _class_pktcdvd@GOTPAGE
Lloh1:
	ldr	x8, [x8, _class_pktcdvd@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	cbz	x20, LBB0_3
; %bb.1:
	mov	w0, #0
	mov	w1, #0
	bl	_MKDEV
	mov	x2, x0
	ldr	w5, [x19, #24]
Lloh3:
	adrp	x4, l_.str@PAGE
Lloh4:
	add	x4, x4, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, #0
	mov	x3, #0
	bl	_device_create
	str	x0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
	str	xzr, [x19]
LBB0_3:
	ldr	x2, [x19]
	cbz	x2, LBB0_5
; %bb.4:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh7:
	adrp	x3, _kobj_pkt_type_stat@GOTPAGE
Lloh8:
	ldr	x3, [x3, _kobj_pkt_type_stat@GOTPAGEOFF]
	mov	x0, x19
	bl	_pkt_kobj_create
	str	x0, [x19, #16]
	ldr	x2, [x19]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh11:
	adrp	x3, _kobj_pkt_type_wqueue@GOTPAGE
Lloh12:
	ldr	x3, [x3, _kobj_pkt_type_wqueue@GOTPAGEOFF]
	mov	x0, x19
	bl	_pkt_kobj_create
	str	x0, [x19, #8]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_class_pktcdvd,8,3              ; @class_pktcdvd
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

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

	.comm	_kobj_pkt_type_stat,4,2         ; @kobj_pkt_type_stat
l_.str.2:                               ; @.str.2
	.asciz	"write_queue"

	.comm	_kobj_pkt_type_wqueue,4,2       ; @kobj_pkt_type_wqueue
	.no_dead_strip	_pkt_sysfs_dev_new
.subsections_via_symbols
