	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at86rf230_hw_init
_at86rf230_hw_init:                     ## @at86rf230_hw_init
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_IRQ_ACTIVE_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_STATE_FORCE_TRX_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_at86rf230_sync_state_change
	testl	%eax, %eax
	jne	LBB0_14
## %bb.1:
	movq	(%r15), %rax
	movl	4(%rax), %edi
	callq	_irq_get_trigger_type
	movq	_IRQ_TYPE_EDGE_FALLING@GOTPCREL(%rip), %rcx
	movq	_IRQ_TYPE_LEVEL_LOW@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	movq	_IRQ_ACTIVE_LOW@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmovel	%edx, %ebx
	cmpl	(%rcx), %eax
	cmovel	%edx, %ebx
	movq	_SR_IRQ_POLARITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_at86rf230_write_subreg
	testl	%eax, %eax
	jne	LBB0_14
## %bb.2:
	movq	_SR_RX_SAFE_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_at86rf230_write_subreg
	testl	%eax, %eax
	jne	LBB0_14
## %bb.3:
	movq	_SR_IRQ_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQ_TRX_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_at86rf230_write_subreg
	testl	%eax, %eax
	jne	LBB0_14
## %bb.4:
	movq	_SR_IRQ_MASK_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_at86rf230_write_subreg
	testl	%eax, %eax
	jne	LBB0_14
## %bb.5:
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_get_random_bytes
	movq	_SR_CSMA_SEED_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-40(%rbp), %edx
	movq	%r15, %rdi
	callq	_at86rf230_write_subreg
	testl	%eax, %eax
	jne	LBB0_14
## %bb.6:
	movq	_SR_CSMA_SEED_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-36(%rbp), %edx
	movq	%r15, %rdi
	callq	_at86rf230_write_subreg
	testl	%eax, %eax
	jne	LBB0_14
## %bb.7:
	movq	_SR_CLKM_SHA_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_at86rf230_write_subreg
	testl	%eax, %eax
	jne	LBB0_14
## %bb.8:
	movq	_SR_CLKM_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_at86rf230_write_subreg
	testl	%eax, %eax
	jne	LBB0_14
## %bb.9:
	movq	8(%r15), %rax
	movq	(%rax), %rdi
	leaq	100(%rdi), %rsi
	callq	_usleep_range
	movq	_SR_XTAL_TRIM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_at86rf230_write_subreg
	testl	%eax, %eax
	jne	LBB0_14
## %bb.10:
	movq	_SR_DVDD_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_at86rf230_read_subreg
	testl	%eax, %eax
	jne	LBB0_14
## %bb.11:
	cmpl	$0, -44(%rbp)
	je	LBB0_12
## %bb.13:
	movq	_SR_SLOTTED_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_at86rf230_write_subreg
	jmp	LBB0_14
LBB0_12:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_16
## %bb.15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_ACTIVE_HIGH,4,2            ## @IRQ_ACTIVE_HIGH
	.comm	_STATE_FORCE_TRX_OFF,4,2        ## @STATE_FORCE_TRX_OFF
	.comm	_IRQ_TYPE_EDGE_FALLING,4,2      ## @IRQ_TYPE_EDGE_FALLING
	.comm	_IRQ_TYPE_LEVEL_LOW,4,2         ## @IRQ_TYPE_LEVEL_LOW
	.comm	_IRQ_ACTIVE_LOW,4,2             ## @IRQ_ACTIVE_LOW
	.comm	_SR_IRQ_POLARITY,4,2            ## @SR_IRQ_POLARITY
	.comm	_SR_RX_SAFE_MODE,4,2            ## @SR_RX_SAFE_MODE
	.comm	_SR_IRQ_MASK,4,2                ## @SR_IRQ_MASK
	.comm	_IRQ_TRX_END,4,2                ## @IRQ_TRX_END
	.comm	_SR_IRQ_MASK_MODE,4,2           ## @SR_IRQ_MASK_MODE
	.comm	_SR_CSMA_SEED_0,4,2             ## @SR_CSMA_SEED_0
	.comm	_SR_CSMA_SEED_1,4,2             ## @SR_CSMA_SEED_1
	.comm	_SR_CLKM_SHA_SEL,4,2            ## @SR_CLKM_SHA_SEL
	.comm	_SR_CLKM_CTRL,4,2               ## @SR_CLKM_CTRL
	.comm	_SR_XTAL_TRIM,4,2               ## @SR_XTAL_TRIM
	.comm	_SR_DVDD_OK,4,2                 ## @SR_DVDD_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DVDD error\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SR_SLOTTED_OPERATION,4,2       ## @SR_SLOTTED_OPERATION
	.no_dead_strip	_at86rf230_hw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at86rf230_hw_init
_at86rf230_hw_init:                     ; @at86rf230_hw_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _IRQ_ACTIVE_HIGH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQ_ACTIVE_HIGH@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
Lloh6:
	adrp	x8, _STATE_FORCE_TRX_OFF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STATE_FORCE_TRX_OFF@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_at86rf230_sync_state_change
	cbnz	w0, LBB0_14
; %bb.1:
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	bl	_irq_get_trigger_type
Lloh9:
	adrp	x8, _IRQ_TYPE_EDGE_FALLING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IRQ_TYPE_EDGE_FALLING@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _IRQ_TYPE_LEVEL_LOW@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IRQ_TYPE_LEVEL_LOW@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w0, w9
Lloh15:
	adrp	x9, _IRQ_ACTIVE_LOW@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IRQ_ACTIVE_LOW@GOTPAGEOFF]
	ccmp	w0, w8, #4, ne
Lloh17:
	ldr	w8, [x9]
	csel	w2, w8, w21, eq
Lloh18:
	adrp	x8, _SR_IRQ_POLARITY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SR_IRQ_POLARITY@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_at86rf230_write_subreg
	cbnz	w0, LBB0_14
; %bb.2:
Lloh21:
	adrp	x8, _SR_RX_SAFE_MODE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SR_RX_SAFE_MODE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_at86rf230_write_subreg
	cbnz	w0, LBB0_14
; %bb.3:
Lloh24:
	adrp	x8, _SR_IRQ_MASK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SR_IRQ_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _IRQ_TRX_END@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IRQ_TRX_END@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_at86rf230_write_subreg
	cbnz	w0, LBB0_14
; %bb.4:
Lloh30:
	adrp	x8, _SR_IRQ_MASK_MODE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SR_IRQ_MASK_MODE@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_at86rf230_write_subreg
	cbnz	w0, LBB0_14
; %bb.5:
	add	x0, sp, #16
	bl	_ARRAY_SIZE
	mov	x1, x0
	add	x0, sp, #16
	bl	_get_random_bytes
Lloh33:
	adrp	x8, _SR_CSMA_SEED_0@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SR_CSMA_SEED_0@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	ldr	w2, [sp, #16]
	mov	x0, x19
	bl	_at86rf230_write_subreg
	cbnz	w0, LBB0_14
; %bb.6:
Lloh36:
	adrp	x8, _SR_CSMA_SEED_1@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SR_CSMA_SEED_1@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	ldr	w2, [sp, #20]
	mov	x0, x19
	bl	_at86rf230_write_subreg
	cbnz	w0, LBB0_14
; %bb.7:
Lloh39:
	adrp	x8, _SR_CLKM_SHA_SEL@GOTPAGE
Lloh40:
	ldr	x8, [x8, _SR_CLKM_SHA_SEL@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_at86rf230_write_subreg
	cbnz	w0, LBB0_14
; %bb.8:
Lloh42:
	adrp	x8, _SR_CLKM_CTRL@GOTPAGE
Lloh43:
	ldr	x8, [x8, _SR_CLKM_CTRL@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_at86rf230_write_subreg
	cbnz	w0, LBB0_14
; %bb.9:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	add	x1, x0, #100
	bl	_usleep_range
Lloh45:
	adrp	x8, _SR_XTAL_TRIM@GOTPAGE
Lloh46:
	ldr	x8, [x8, _SR_XTAL_TRIM@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_at86rf230_write_subreg
	cbnz	w0, LBB0_14
; %bb.10:
Lloh48:
	adrp	x8, _SR_DVDD_OK@GOTPAGE
Lloh49:
	ldr	x8, [x8, _SR_DVDD_OK@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_at86rf230_read_subreg
	cbnz	w0, LBB0_14
; %bb.11:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_13
; %bb.12:
Lloh51:
	adrp	x8, _SR_SLOTTED_OPERATION@GOTPAGE
Lloh52:
	ldr	x8, [x8, _SR_SLOTTED_OPERATION@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_at86rf230_write_subreg
	b	LBB0_14
LBB0_13:
	ldr	x0, [x19]
Lloh54:
	adrp	x1, l_.str@PAGE
Lloh55:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh56:
	adrp	x8, _EINVAL@GOTPAGE
Lloh57:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldr	x8, [sp, #24]
Lloh59:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh60:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh61:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	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
	add	sp, sp, #80
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_ACTIVE_HIGH,4,2            ; @IRQ_ACTIVE_HIGH
	.comm	_STATE_FORCE_TRX_OFF,4,2        ; @STATE_FORCE_TRX_OFF
	.comm	_IRQ_TYPE_EDGE_FALLING,4,2      ; @IRQ_TYPE_EDGE_FALLING
	.comm	_IRQ_TYPE_LEVEL_LOW,4,2         ; @IRQ_TYPE_LEVEL_LOW
	.comm	_IRQ_ACTIVE_LOW,4,2             ; @IRQ_ACTIVE_LOW
	.comm	_SR_IRQ_POLARITY,4,2            ; @SR_IRQ_POLARITY
	.comm	_SR_RX_SAFE_MODE,4,2            ; @SR_RX_SAFE_MODE
	.comm	_SR_IRQ_MASK,4,2                ; @SR_IRQ_MASK
	.comm	_IRQ_TRX_END,4,2                ; @IRQ_TRX_END
	.comm	_SR_IRQ_MASK_MODE,4,2           ; @SR_IRQ_MASK_MODE
	.comm	_SR_CSMA_SEED_0,4,2             ; @SR_CSMA_SEED_0
	.comm	_SR_CSMA_SEED_1,4,2             ; @SR_CSMA_SEED_1
	.comm	_SR_CLKM_SHA_SEL,4,2            ; @SR_CLKM_SHA_SEL
	.comm	_SR_CLKM_CTRL,4,2               ; @SR_CLKM_CTRL
	.comm	_SR_XTAL_TRIM,4,2               ; @SR_XTAL_TRIM
	.comm	_SR_DVDD_OK,4,2                 ; @SR_DVDD_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DVDD error\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SR_SLOTTED_OPERATION,4,2       ; @SR_SLOTTED_OPERATION
	.no_dead_strip	_at86rf230_hw_init
.subsections_via_symbols
