	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee802154_nl_get_dev
_ieee802154_nl_get_dev:                 ## @ieee802154_nl_get_dev
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rax
	movq	_IEEE802154_ATTR_DEV_NAME@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_2
## %bb.1:
	movq	%rdi, %r14
	movq	%rsp, %r13
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	incl	%ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	(%r14), %rax
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_nla_strlcpy
	movq	_init_net@GOTPCREL(%rip), %rdi
	movq	%r15, %rsi
	callq	_dev_get_by_name
	movq	%r13, %rsp
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_7
LBB0_2:
	movq	_IEEE802154_ATTR_DEV_INDEX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.3:
	callq	_nla_get_u32
	movq	_init_net@GOTPCREL(%rip), %rdi
	movl	%eax, %esi
	callq	_dev_get_by_index
	testq	%rax, %rax
	je	LBB0_7
LBB0_5:
	movq	(%rax), %rcx
	movq	_ARPHRD_IEEE802154@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_8
## %bb.6:
	movq	%rax, %rdi
	callq	_dev_put
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_10
## %bb.9:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE802154_ATTR_DEV_NAME,8,3   ## @IEEE802154_ATTR_DEV_NAME
	.comm	_IFNAMSIZ,4,2                   ## @IFNAMSIZ
	.comm	_init_net,4,2                   ## @init_net
	.comm	_IEEE802154_ATTR_DEV_INDEX,8,3  ## @IEEE802154_ATTR_DEV_INDEX
	.comm	_ARPHRD_IEEE802154,8,3          ## @ARPHRD_IEEE802154
	.no_dead_strip	_ieee802154_nl_get_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee802154_nl_get_dev
_ieee802154_nl_get_dev:                 ; @ieee802154_nl_get_dev
	.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
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	ldr	x9, [x0]
Lloh3:
	adrp	x8, _IEEE802154_ATTR_DEV_NAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE802154_ATTR_DEV_NAME@GOTPAGEOFF]
	ldr	x10, [x8]
	ldr	x10, [x9, x10, lsl #3]
	cbz	x10, LBB0_2
; %bb.1:
	mov	x20, sp
Lloh5:
	adrp	x9, _IFNAMSIZ@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IFNAMSIZ@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	add	w2, w9, #1
	mov	x9, x2
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x2, #15
	and	x10, x10, #0x1fffffff0
	sub	x19, x9, x10
	mov	sp, x19
	ldr	x9, [x0]
	ldr	x8, [x8]
	ldr	x1, [x9, x8, lsl #3]
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_nla_strlcpy
Lloh10:
	adrp	x0, _init_net@GOTPAGE
Lloh11:
	ldr	x0, [x0, _init_net@GOTPAGEOFF]
	mov	x1, x19
	bl	_dev_get_by_name
	mov	sp, x20
	cbnz	x0, LBB0_4
	b	LBB0_6
LBB0_2:
Lloh12:
	adrp	x8, _IEEE802154_ATTR_DEV_INDEX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IEEE802154_ATTR_DEV_INDEX@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	x0, [x9, x8, lsl #3]
	cbz	x0, LBB0_6
; %bb.3:
	bl	_nla_get_u32
	mov	x1, x0
Lloh15:
	adrp	x0, _init_net@GOTPAGE
Lloh16:
	ldr	x0, [x0, _init_net@GOTPAGEOFF]
	bl	_dev_get_by_index
	cbz	x0, LBB0_6
LBB0_4:
	ldr	x8, [x0]
Lloh17:
	adrp	x9, _ARPHRD_IEEE802154@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ARPHRD_IEEE802154@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:
	bl	_dev_put
	mov	x0, #0
LBB0_6:
	ldur	x8, [x29, #-24]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	sub	sp, x29, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE802154_ATTR_DEV_NAME,8,3   ; @IEEE802154_ATTR_DEV_NAME
	.comm	_IFNAMSIZ,4,2                   ; @IFNAMSIZ
	.comm	_init_net,4,2                   ; @init_net
	.comm	_IEEE802154_ATTR_DEV_INDEX,8,3  ; @IEEE802154_ATTR_DEV_INDEX
	.comm	_ARPHRD_IEEE802154,8,3          ; @ARPHRD_IEEE802154
	.no_dead_strip	_ieee802154_nl_get_dev
.subsections_via_symbols
