	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function hwsim_add_one
LCPI0_0:
	.long	134217727                       ## 0x7ffffff
	.long	2047                            ## 0x7ff
	.long	2047                            ## 0x7ff
	.long	16383                           ## 0x3fff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_hwsim_add_one:                         ## @hwsim_add_one
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_hwsim_radio_idx@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	leal	1(%r13), %ecx
	movl	%ecx, (%rax)
	movq	_hwsim_ops@GOTPCREL(%rip), %rsi
	movl	$32, %edi
	callq	_ieee802154_alloc_hw
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	24(%rax), %r14
	movq	%rax, 8(%r14)
	movq	16(%rax), %rdi
	movq	8(%rdi), %rax
	movups	(%rax), %xmm0
	orps	LCPI0_0(%rip), %xmm0
	movups	%xmm0, (%rax)
	orl	$65535, 16(%rax)                ## imm = 0xFFFF
	movb	$-1, 20(%rax)
	orl	$4194303, 24(%rax)              ## imm = 0x3FFFFF
	addq	$4, %rdi
	callq	_ieee802154_random_extended_addr
	movq	16(%r12), %rax
	movl	$13, (%rax)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movl	24(%r14), %edi
	movq	%rax, %rsi
	callq	_rcu_assign_pointer
	movl	%r13d, (%r14)
	leaq	20(%r14), %rdi
	callq	_INIT_LIST_HEAD
	movq	_IEEE802154_HW_PROMISCUOUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r12)
	movq	%r12, %rdi
	callq	_ieee802154_register_hw
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_5
LBB0_8:
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_10
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_9:
	movq	8(%r14), %rdi
	callq	_ieee802154_free_hw
	movl	%r12d, %r13d
LBB0_10:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_hwsim_phys_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_11
## %bb.6:
	movq	%r14, %rdi
	callq	_hwsim_subscribe_all_others
	testl	%eax, %eax
	js	LBB0_7
LBB0_11:
	leaq	16(%r14), %rdi
	movq	_hwsim_phys@GOTPCREL(%rip), %rsi
	callq	_list_add_tail
	movq	_hwsim_phys_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_hwsim_mcast_new_radio
	jmp	LBB0_10
LBB0_7:
	movl	%eax, %r12d
	movq	_hwsim_phys_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	8(%r14), %rdi
	callq	_ieee802154_unregister_hw
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_hwsim_radio_idx,4,2            ## @hwsim_radio_idx
	.comm	_hwsim_ops,4,2                  ## @hwsim_ops
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_IEEE802154_HW_PROMISCUOUS,4,2  ## @IEEE802154_HW_PROMISCUOUS
	.comm	_hwsim_phys_lock,4,2            ## @hwsim_phys_lock
	.comm	_hwsim_phys,4,2                 ## @hwsim_phys
	.no_dead_strip	_hwsim_add_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function hwsim_add_one
lCPI0_0:
	.long	134217727                       ; 0x7ffffff
	.long	2047                            ; 0x7ff
	.long	2047                            ; 0x7ff
	.long	16383                           ; 0x3fff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_hwsim_add_one:                         ; @hwsim_add_one
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _hwsim_radio_idx@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hwsim_radio_idx@GOTPAGEOFF]
	ldr	w20, [x8]
	add	w9, w20, #1
	str	w9, [x8]
Lloh2:
	adrp	x1, _hwsim_ops@GOTPAGE
Lloh3:
	ldr	x1, [x1, _hwsim_ops@GOTPAGEOFF]
	mov	w0, #32
	bl	_ieee802154_alloc_hw
	cbz	x0, LBB0_4
; %bb.1:
	mov	x25, x0
	ldp	x8, x19, [x0, #16]
	str	x0, [x19, #8]
	ldr	x9, [x8, #8]
	ldr	q0, [x9]
Lloh4:
	adrp	x10, lCPI0_0@PAGE
Lloh5:
	ldr	q1, [x10, lCPI0_0@PAGEOFF]
	orr.16b	v0, v0, v1
	str	q0, [x9]
	ldr	d0, [x9, #16]
	movi	d1, #0x0000ff0000ffff
	orr.8b	v0, v0, v1
	str	d0, [x9, #16]
	ldr	w10, [x9, #24]
	orr	w10, w10, #0x3fffff
	str	w10, [x9, #24]
	add	x0, x8, #4
	bl	_ieee802154_random_extended_addr
	ldr	x8, [x25, #16]
	mov	w9, #13
	str	w9, [x8]
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x24, x0
	ldr	w0, [x19, #24]
	mov	x1, x24
	bl	_rcu_assign_pointer
	str	w20, [x19]
	add	x0, x19, #20
	bl	_INIT_LIST_HEAD
Lloh9:
	adrp	x8, _IEEE802154_HW_PROMISCUOUS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IEEE802154_HW_PROMISCUOUS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x25, #8]
	str	x23, [x25]
	mov	x0, x25
	bl	_ieee802154_register_hw
	mov	x23, x0
	cbz	w0, LBB0_8
LBB0_3:
	mov	x0, x24
	bl	_kfree
	b	LBB0_6
LBB0_4:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
LBB0_5:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_6:
	ldr	x0, [x19, #8]
	bl	_ieee802154_free_hw
	mov	x20, x23
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh18:
	adrp	x0, _hwsim_phys_lock@GOTPAGE
Lloh19:
	ldr	x0, [x0, _hwsim_phys_lock@GOTPAGEOFF]
	bl	_mutex_lock
	cbz	w22, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_hwsim_subscribe_all_others
	tbnz	w0, #31, LBB0_11
LBB0_10:
	add	x0, x19, #16
Lloh20:
	adrp	x1, _hwsim_phys@GOTPAGE
Lloh21:
	ldr	x1, [x1, _hwsim_phys@GOTPAGEOFF]
	bl	_list_add_tail
Lloh22:
	adrp	x0, _hwsim_phys_lock@GOTPAGE
Lloh23:
	ldr	x0, [x0, _hwsim_phys_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x21
	mov	x1, x19
	bl	_hwsim_mcast_new_radio
	b	LBB0_7
LBB0_11:
	mov	x23, x0
Lloh24:
	adrp	x0, _hwsim_phys_lock@GOTPAGE
Lloh25:
	ldr	x0, [x0, _hwsim_phys_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	ldr	x0, [x19, #8]
	bl	_ieee802154_unregister_hw
	b	LBB0_3
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_hwsim_radio_idx,4,2            ; @hwsim_radio_idx
	.comm	_hwsim_ops,4,2                  ; @hwsim_ops
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_IEEE802154_HW_PROMISCUOUS,4,2  ; @IEEE802154_HW_PROMISCUOUS
	.comm	_hwsim_phys_lock,4,2            ; @hwsim_phys_lock
	.comm	_hwsim_phys,4,2                 ; @hwsim_phys
	.no_dead_strip	_hwsim_add_one
.subsections_via_symbols
