	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_device_get_devnode             ## -- Begin function device_get_devnode
	.p2align	4, 0x90
_device_get_devnode:                    ## @device_get_devnode
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	$0, (%rdx)
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	*%rax
	movq	%rax, %rbx
	movq	%rax, (%r15)
	testq	%rax, %rax
	jne	LBB0_12
LBB0_3:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	*%rax
	movq	%rax, %rbx
	movq	%rax, (%r15)
	testq	%rax, %rax
	jne	LBB0_12
LBB0_6:
	movq	%r14, %rdi
	callq	_dev_name
	movq	%rax, %rdi
	movl	$33, %esi
	callq	_strchr
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_dev_name
	movq	%rax, %rbx
	testq	%r12, %r12
	je	LBB0_12
## %bb.7:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kstrdup
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$33, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=1
	movb	$47, (%rax)
	movq	(%r15), %rbx
	jmp	LBB0_11
LBB0_8:
	xorl	%ebx, %ebx
LBB0_12:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_device_get_devnode             ; -- Begin function device_get_devnode
	.p2align	2
_device_get_devnode:                    ; @device_get_devnode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	str	xzr, [x2]
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x22
	blr	x8
	mov	x21, x0
	str	x0, [x19]
	cbnz	x0, LBB0_11
LBB0_3:
	ldr	x8, [x20]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x20
	mov	x1, x22
	blr	x8
	mov	x21, x0
	str	x0, [x19]
	cbnz	x0, LBB0_11
LBB0_6:
	mov	x0, x20
	bl	_dev_name
	mov	w1, #33
	bl	_strchr
	mov	x22, x0
	mov	x0, x20
	bl	_dev_name
	mov	x21, x0
	cbz	x22, LBB0_11
; %bb.7:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_kstrdup
	mov	x21, x0
	str	x0, [x19]
	cbz	x0, LBB0_11
; %bb.8:
	mov	x0, x21
	mov	w1, #33
	bl	_strchr
	cbz	x0, LBB0_11
; %bb.9:
	mov	w20, #47
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	strb	w20, [x0]
	ldr	x21, [x19]
	mov	x0, x21
	mov	w1, #33
	bl	_strchr
	cbnz	x0, LBB0_10
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
.subsections_via_symbols
