	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dev_load                       ## -- Begin function dev_load
	.p2align	4, 0x90
_dev_load:                              ## @dev_load
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_dev_base_lock@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_read_lock
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	___dev_get_by_name
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_read_unlock
	testq	%rbx, %rbx
	je	LBB0_1
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_CAP_NET_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_request_module
	testl	%eax, %eax
	je	LBB0_5
LBB0_3:
	movq	_CAP_SYS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	callq	_request_module
	testl	%eax, %eax
	jne	LBB0_5
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_dev_base_lock,4,2              ## @dev_base_lock
	.comm	_CAP_NET_ADMIN,4,2              ## @CAP_NET_ADMIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"netdev-%s"

	.comm	_CAP_SYS_MODULE,4,2             ## @CAP_SYS_MODULE
L_.str.1:                               ## @.str.1
	.asciz	"%s"

L_.str.2:                               ## @.str.2
	.asciz	"Loading kernel module for a network device with CAP_SYS_MODULE (deprecated).  Use CAP_NET_ADMIN and alias netdev-%s instead\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dev_load                       ; -- Begin function dev_load
	.p2align	2
_dev_load:                              ; @dev_load
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _dev_base_lock@GOTPAGE
Lloh1:
	ldr	x21, [x21, _dev_base_lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_read_lock
	mov	x0, x20
	mov	x1, x19
	bl	___dev_get_by_name
	mov	x20, x0
	mov	x0, x21
	bl	_read_unlock
	cbz	x20, LBB0_2
LBB0_1:
	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
LBB0_2:
Lloh2:
	adrp	x8, _CAP_NET_ADMIN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CAP_NET_ADMIN@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_capable
	cbz	x0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_request_module
	cbz	w0, LBB0_1
LBB0_4:
Lloh7:
	adrp	x8, _CAP_SYS_MODULE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CAP_SYS_MODULE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_capable
	cbz	x0, LBB0_1
; %bb.5:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_request_module
	cbnz	w0, LBB0_1
; %bb.6:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	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
	b	_pr_err
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_dev_base_lock,4,2              ; @dev_base_lock
	.comm	_CAP_NET_ADMIN,4,2              ; @CAP_NET_ADMIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"netdev-%s"

	.comm	_CAP_SYS_MODULE,4,2             ; @CAP_SYS_MODULE
l_.str.1:                               ; @.str.1
	.asciz	"%s"

l_.str.2:                               ; @.str.2
	.asciz	"Loading kernel module for a network device with CAP_SYS_MODULE (deprecated).  Use CAP_NET_ADMIN and alias netdev-%s instead\n"

.subsections_via_symbols
