	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at86rf230_async_state_assert
_at86rf230_async_state_assert:          ## @at86rf230_async_state_assert
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_TRX_STATE_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	(%rdi), %rax
	andq	8(%rax), %r8
	movq	8(%rdi), %rcx
	cmpq	%rcx, %r8
	je	LBB0_10
## %bb.1:
	movq	32(%rbx), %rdi
	movq	_STATE_BUSY_RX_AACK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r8
	jne	LBB0_9
## %bb.2:
	movq	_STATE_RX_AACK_ON@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_10
## %bb.3:
	movq	_STATE_TX_ON@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_5
## %bb.4:
	movq	_STATE_TRX_OFF@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_5
LBB0_9:
	movq	8(%rdi), %rdi
	movl	24(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
LBB0_10:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movq	(%rdi), %rax
	movq	_AT86RF2XX_MAX_TX_RETRIES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_6
## %bb.7:
	movq	_STATE_FORCE_TRX_OFF@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_6:
	leaq	8(%rbx), %rcx
LBB0_8:
	movq	(%rcx), %rdx
	incq	%rax
	movq	%rax, (%rdi)
	movq	16(%rbx), %rcx
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_at86rf230_async_state_change   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TRX_STATE_MASK,8,3             ## @TRX_STATE_MASK
	.comm	_STATE_BUSY_RX_AACK,8,3         ## @STATE_BUSY_RX_AACK
	.comm	_STATE_RX_AACK_ON,8,3           ## @STATE_RX_AACK_ON
	.comm	_STATE_TX_ON,8,3                ## @STATE_TX_ON
	.comm	_STATE_TRX_OFF,8,3              ## @STATE_TRX_OFF
	.comm	_AT86RF2XX_MAX_TX_RETRIES,8,3   ## @AT86RF2XX_MAX_TX_RETRIES
	.comm	_STATE_FORCE_TRX_OFF,8,3        ## @STATE_FORCE_TRX_OFF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexcept state change from 0x%02x to 0x%02x. Actual state: 0x%02x\n"

	.no_dead_strip	_at86rf230_async_state_assert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at86rf230_async_state_assert
_at86rf230_async_state_assert:          ; @at86rf230_async_state_assert
	.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
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
Lloh0:
	adrp	x9, _TRX_STATE_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TRX_STATE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	and	x4, x9, x8
	mov	x8, x0
	ldr	x3, [x8, #8]!
	cmp	x4, x3
	b.eq	LBB0_6
; %bb.1:
	ldr	x0, [x19, #32]
Lloh3:
	adrp	x9, _STATE_BUSY_RX_AACK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _STATE_BUSY_RX_AACK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x4, x9
	b.ne	LBB0_5
; %bb.2:
Lloh6:
	adrp	x9, _STATE_RX_AACK_ON@GOTPAGE
Lloh7:
	ldr	x9, [x9, _STATE_RX_AACK_ON@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x3, x9
	b.eq	LBB0_6
; %bb.3:
Lloh9:
	adrp	x9, _STATE_TX_ON@GOTPAGE
Lloh10:
	ldr	x9, [x9, _STATE_TX_ON@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _STATE_TRX_OFF@GOTPAGE
Lloh13:
	ldr	x10, [x10, _STATE_TRX_OFF@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x3, x9
	ccmp	x3, x10, #4, ne
	b.ne	LBB0_5
; %bb.4:
	ldr	x9, [x0]
Lloh15:
	adrp	x10, _AT86RF2XX_MAX_TX_RETRIES@GOTPAGE
Lloh16:
	ldr	x10, [x10, _AT86RF2XX_MAX_TX_RETRIES@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
Lloh18:
	adrp	x11, _STATE_FORCE_TRX_OFF@GOTPAGE
Lloh19:
	ldr	x11, [x11, _STATE_FORCE_TRX_OFF@GOTPAGEOFF]
	cmp	x9, x10
	csel	x8, x8, x11, lt
	ldr	x2, [x8]
	add	x8, x9, #1
	str	x8, [x0]
	ldr	x3, [x19, #16]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_at86rf230_async_state_change
LBB0_5:
	ldr	x0, [x0, #8]
	ldr	w2, [x19, #24]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_6:
	ldr	x1, [x19, #16]
	cbz	x1, LBB0_8
; %bb.7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x1
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_TRX_STATE_MASK,8,3             ; @TRX_STATE_MASK
	.comm	_STATE_BUSY_RX_AACK,8,3         ; @STATE_BUSY_RX_AACK
	.comm	_STATE_RX_AACK_ON,8,3           ; @STATE_RX_AACK_ON
	.comm	_STATE_TX_ON,8,3                ; @STATE_TX_ON
	.comm	_STATE_TRX_OFF,8,3              ; @STATE_TRX_OFF
	.comm	_AT86RF2XX_MAX_TX_RETRIES,8,3   ; @AT86RF2XX_MAX_TX_RETRIES
	.comm	_STATE_FORCE_TRX_OFF,8,3        ; @STATE_FORCE_TRX_OFF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexcept state change from 0x%02x to 0x%02x. Actual state: 0x%02x\n"

	.no_dead_strip	_at86rf230_async_state_assert
.subsections_via_symbols
