	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee802154_scan_req
_ieee802154_scan_req:                   ## @ieee802154_scan_req
	.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	(%rsi), %rax
	movq	_IEEE802154_ATTR_SCAN_TYPE@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_3
## %bb.1:
	movq	_IEEE802154_ATTR_CHANNELS@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_3
## %bb.2:
	movq	_IEEE802154_ATTR_DURATION@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_3
## %bb.5:
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_ieee802154_nl_get_dev
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_nla_get_u8
	movq	%rax, %r15
	movq	(%rbx), %rax
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_nla_get_u32
	movl	%eax, %r12d
	movq	(%rbx), %rax
	movq	(%r13), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_nla_get_u8
	movq	%rax, %r13
	movq	(%rbx), %rax
	movq	_IEEE802154_ATTR_PAGE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.9:
	callq	_nla_get_u8
	movq	%rax, %rbx
	jmp	LBB0_10
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_8:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%r14, %rdi
	callq	_ieee802154_mlme_ops
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	movq	%rbx, %rcx
	movq	%r13, %r8
	callq	*(%rax)
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_dev_put
	movl	%ebx, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE802154_ATTR_SCAN_TYPE,8,3  ## @IEEE802154_ATTR_SCAN_TYPE
	.comm	_IEEE802154_ATTR_CHANNELS,8,3   ## @IEEE802154_ATTR_CHANNELS
	.comm	_IEEE802154_ATTR_DURATION,8,3   ## @IEEE802154_ATTR_DURATION
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_IEEE802154_ATTR_PAGE,8,3       ## @IEEE802154_ATTR_PAGE
	.no_dead_strip	_ieee802154_scan_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee802154_scan_req
_ieee802154_scan_req:                   ; @ieee802154_scan_req
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x8, [x1]
Lloh0:
	adrp	x21, _IEEE802154_ATTR_SCAN_TYPE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IEEE802154_ATTR_SCAN_TYPE@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	x9, [x8, x9, lsl #3]
	cbz	x9, LBB0_6
; %bb.1:
Lloh2:
	adrp	x22, _IEEE802154_ATTR_CHANNELS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _IEEE802154_ATTR_CHANNELS@GOTPAGEOFF]
	ldr	x9, [x22]
	ldr	x9, [x8, x9, lsl #3]
	cbz	x9, LBB0_6
; %bb.2:
Lloh4:
	adrp	x23, _IEEE802154_ATTR_DURATION@GOTPAGE
Lloh5:
	ldr	x23, [x23, _IEEE802154_ATTR_DURATION@GOTPAGEOFF]
	ldr	x9, [x23]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_6
; %bb.3:
	mov	x20, x1
	mov	x0, x1
	bl	_ieee802154_nl_get_dev
	cbz	x0, LBB0_9
; %bb.4:
	mov	x19, x0
	ldr	x8, [x20]
	ldr	x9, [x21]
	ldr	x0, [x8, x9, lsl #3]
	bl	_nla_get_u8
	mov	x21, x0
	ldr	x8, [x20]
	ldr	x9, [x22]
	ldr	x0, [x8, x9, lsl #3]
	bl	_nla_get_u32
	mov	x22, x0
	ldr	x8, [x20]
	ldr	x9, [x23]
	ldr	x0, [x8, x9, lsl #3]
	bl	_nla_get_u8
	mov	x23, x0
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _IEEE802154_ATTR_PAGE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEEE802154_ATTR_PAGE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_10
; %bb.5:
	bl	_nla_get_u8
	mov	x20, x0
	b	LBB0_11
LBB0_6:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh11:
	adrp	x8, _ENODEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_7
LBB0_10:
	mov	x20, #0
LBB0_11:
	mov	x0, x19
	bl	_ieee802154_mlme_ops
	ldr	x8, [x0]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x3, x20
	mov	x4, x23
	blr	x8
	mov	x20, x0
	mov	x0, x19
	bl	_dev_put
	mov	x0, x20
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE802154_ATTR_SCAN_TYPE,8,3  ; @IEEE802154_ATTR_SCAN_TYPE
	.comm	_IEEE802154_ATTR_CHANNELS,8,3   ; @IEEE802154_ATTR_CHANNELS
	.comm	_IEEE802154_ATTR_DURATION,8,3   ; @IEEE802154_ATTR_DURATION
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_IEEE802154_ATTR_PAGE,8,3       ; @IEEE802154_ATTR_PAGE
	.no_dead_strip	_ieee802154_scan_req
.subsections_via_symbols
