	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee802154_fake_ioctl
_ieee802154_fake_ioctl:                 ## @ieee802154_fake_ioctl
	.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
	cmpl	$128, %edx
	jne	LBB0_5
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_fake_get_pan_id
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_fake_get_short_addr
	movq	_IEEE802154_PANID_BROADCAST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r14
	je	LBB0_3
## %bb.2:
	movq	_IEEE802154_ADDR_BROADCAST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.4:
	movq	_AF_IEEE802154@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%r15)
	movq	_IEEE802154_ADDR_SHORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%r15)
	movq	%r14, 8(%r15)
	movq	%rax, (%r15)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_5:
	movq	_ENOIOCTLCMD@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_3:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rcx
LBB0_6:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE802154_PANID_BROADCAST,8,3 ## @IEEE802154_PANID_BROADCAST
	.comm	_IEEE802154_ADDR_BROADCAST,8,3  ## @IEEE802154_ADDR_BROADCAST
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_AF_IEEE802154,4,2              ## @AF_IEEE802154
	.comm	_IEEE802154_ADDR_SHORT,4,2      ## @IEEE802154_ADDR_SHORT
	.comm	_ENOIOCTLCMD,4,2                ## @ENOIOCTLCMD
	.no_dead_strip	_ieee802154_fake_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee802154_fake_ioctl
_ieee802154_fake_ioctl:                 ; @ieee802154_fake_ioctl
	.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
	cmp	w2, #128
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	bl	_fake_get_pan_id
	mov	x20, x0
	mov	x0, x21
	bl	_fake_get_short_addr
Lloh0:
	adrp	x9, _IEEE802154_PANID_BROADCAST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE802154_PANID_BROADCAST@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _IEEE802154_ADDR_BROADCAST@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IEEE802154_ADDR_BROADCAST@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x20, x9
	ccmp	x0, x10, #4, ne
	b.ne	LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _ENOIOCTLCMD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOIOCTLCMD@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	mov	x8, x0
	mov	w0, #0
Lloh10:
	adrp	x9, _AF_IEEE802154@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AF_IEEE802154@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	str	w9, [x19, #24]
Lloh13:
	adrp	x9, _IEEE802154_ADDR_SHORT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IEEE802154_ADDR_SHORT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	str	w9, [x19, #16]
	stp	x8, x20, [x19]
LBB0_6:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE802154_PANID_BROADCAST,8,3 ; @IEEE802154_PANID_BROADCAST
	.comm	_IEEE802154_ADDR_BROADCAST,8,3  ; @IEEE802154_ADDR_BROADCAST
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_AF_IEEE802154,4,2              ; @AF_IEEE802154
	.comm	_IEEE802154_ADDR_SHORT,4,2      ; @IEEE802154_ADDR_SHORT
	.comm	_ENOIOCTLCMD,4,2                ; @ENOIOCTLCMD
	.no_dead_strip	_ieee802154_fake_ioctl
.subsections_via_symbols
