	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cfg80211_get_dev_from_ifindex  ## -- Begin function cfg80211_get_dev_from_ifindex
	.p2align	4, 0x90
_cfg80211_get_dev_from_ifindex:         ## @cfg80211_get_dev_from_ifindex
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_ENODEV@GOTPCREL(%rip), %r12
	xorl	%edi, %edi
	subl	(%r12), %edi
	callq	_ERR_PTR
	movq	%rax, %r14
	movq	_cfg80211_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_dev_get_by_index
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%rax), %edi
	callq	_wiphy_to_dev
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_mutex_lock
	jmp	LBB0_4
LBB0_3:
	xorl	%edi, %edi
	subl	(%r12), %edi
	callq	_ERR_PTR
	movq	%rax, %r14
LBB0_4:
	movq	%rbx, %rdi
	callq	_dev_put
LBB0_5:
	movq	_cfg80211_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_cfg80211_mutex,4,2             ## @cfg80211_mutex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cfg80211_get_dev_from_ifindex  ; -- Begin function cfg80211_get_dev_from_ifindex
	.p2align	2
_cfg80211_get_dev_from_ifindex:         ; @cfg80211_get_dev_from_ifindex
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _ENODEV@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ENODEV@GOTPAGEOFF]
	ldr	w8, [x22]
	neg	w0, w8
	bl	_ERR_PTR
	mov	x19, x0
Lloh2:
	adrp	x0, _cfg80211_mutex@GOTPAGE
Lloh3:
	ldr	x0, [x0, _cfg80211_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	mov	x0, x21
	mov	x1, x20
	bl	_dev_get_by_index
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w0, [x8]
	bl	_wiphy_to_dev
	mov	x19, x0
	bl	_mutex_lock
	b	LBB0_4
LBB0_3:
	ldr	w8, [x22]
	neg	w0, w8
	bl	_ERR_PTR
	mov	x19, x0
LBB0_4:
	mov	x0, x20
	bl	_dev_put
LBB0_5:
Lloh4:
	adrp	x0, _cfg80211_mutex@GOTPAGE
Lloh5:
	ldr	x0, [x0, _cfg80211_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, 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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_cfg80211_mutex,4,2             ; @cfg80211_mutex
.subsections_via_symbols
