	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at86rf230_probe
_at86rf230_probe:                       ## @at86rf230_probe
	.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
	movq	%rdi, %r12
	movl	$0, -52(%rbp)
	cmpl	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	leaq	-44(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	movq	%r12, %rdi
	callq	_at86rf230_get_pdata
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	-44(%rbp), %edi
	callq	_gpio_is_valid
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	4(%r12), %rdi
	movl	-44(%rbp), %esi
	movq	_GPIOF_OUT_INIT_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
	callq	_devm_gpio_request_one
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_25
LBB0_6:
	movl	-48(%rbp), %edi
	callq	_gpio_is_valid
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	4(%r12), %rdi
	movl	-48(%rbp), %esi
	movq	_GPIOF_OUT_INIT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rcx
	callq	_devm_gpio_request_one
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_25
LBB0_8:
	movl	-44(%rbp), %edi
	callq	_gpio_is_valid
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	$1, %edi
	callq	_udelay
	movl	-44(%rbp), %edi
	xorl	%esi, %esi
	callq	_gpio_set_value_cansleep
	movl	$1, %edi
	callq	_udelay
	movl	-44(%rbp), %edi
	movl	$1, %esi
	callq	_gpio_set_value_cansleep
	movl	$120, %edi
	movl	$240, %esi
	callq	_usleep_range
LBB0_10:
	movq	_at86rf230_ops@GOTPCREL(%rip), %rsi
	movl	$40, %edi
	callq	_ieee802154_alloc_hw
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	16(%rax), %r14
	movq	%rax, 8(%r14)
	movq	%r12, 32(%r14)
	movl	-48(%rbp), %ecx
	movl	%ecx, (%r14)
	leaq	4(%r12), %r15
	movq	%r15, 8(%rax)
	movq	(%rax), %rdi
	callq	_ieee802154_random_extended_addr
	movq	_at86rf230_regmap_spi_config@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_regmap_init_spi
	movl	%eax, 28(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movl	28(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_24:
	movq	8(%r14), %rdi
	callq	_ieee802154_free_hw
	jmp	LBB0_25
LBB0_1:
	addq	$4, %r12
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_25
LBB0_3:
	movl	%eax, %ebx
	addq	$4, %r12
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_25:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_25
LBB0_14:
	leaq	24(%r14), %rsi
	movq	%r14, %rdi
	callq	_at86rf230_setup_spi_messages
	leaq	20(%r14), %rsi
	movq	%r14, %rdi
	callq	_at86rf230_setup_spi_messages
	movq	%r14, %rdi
	callq	_at86rf230_detect_device
	testl	%eax, %eax
	js	LBB0_15
## %bb.16:
	leaq	16(%r14), %rdi
	callq	_init_completion
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_spi_set_drvdata
	movl	-52(%rbp), %esi
	movq	%r14, %rdi
	callq	_at86rf230_hw_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_24
## %bb.17:
	movq	_RG_IRQ_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-60(%rbp), %r8
	movq	%r14, %rdi
	movl	$255, %edx
	xorl	%ecx, %ecx
	callq	_at86rf230_read_subreg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_24
## %bb.18:
	movl	(%r12), %edi
	callq	_irq_get_trigger_type
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.19:
	movq	_IRQF_TRIGGER_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_20:
	movl	(%r12), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_at86rf230_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_dev_name
	movq	%r15, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	movq	%r14, %r9
	callq	_devm_request_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_24
## %bb.21:
	movl	(%r12), %edi
	callq	_disable_irq
	movq	%r14, %rdi
	callq	_at86rf230_sleep
	movq	%r14, %rdi
	callq	_at86rf230_debugfs_init
	movq	8(%r14), %rdi
	callq	_ieee802154_register_hw
	testl	%eax, %eax
	je	LBB0_22
## %bb.23:
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_at86rf230_debugfs_remove
	jmp	LBB0_24
LBB0_15:
	movl	%eax, %ebx
	jmp	LBB0_24
LBB0_22:
	xorl	%ebx, %ebx
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no IRQ specified\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"failed to parse platform_data: %d\n"

	.comm	_GPIOF_OUT_INIT_HIGH,4,2        ## @GPIOF_OUT_INIT_HIGH
L_.str.2:                               ## @.str.2
	.asciz	"rstn"

	.comm	_GPIOF_OUT_INIT_LOW,4,2         ## @GPIOF_OUT_INIT_LOW
L_.str.3:                               ## @.str.3
	.asciz	"slp_tr"

	.comm	_at86rf230_ops,4,2              ## @at86rf230_ops
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_at86rf230_regmap_spi_config,4,2 ## @at86rf230_regmap_spi_config
L_.str.4:                               ## @.str.4
	.asciz	"Failed to allocate register map: %d\n"

	.comm	_RG_IRQ_STATUS,4,2              ## @RG_IRQ_STATUS
	.comm	_IRQF_TRIGGER_HIGH,4,2          ## @IRQF_TRIGGER_HIGH
	.comm	_at86rf230_isr,4,2              ## @at86rf230_isr
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.no_dead_strip	_at86rf230_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at86rf230_probe
_at86rf230_probe:                       ; @at86rf230_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	str	wzr, [sp, #16]
	ldr	w8, [x0]
	cbz	w8, LBB0_12
; %bb.1:
	add	x1, sp, #24
	add	x2, sp, #20
	add	x3, sp, #16
	mov	x0, x19
	bl	_at86rf230_get_pdata
	tbnz	w0, #31, LBB0_14
; %bb.2:
	ldr	w0, [sp, #24]
	bl	_gpio_is_valid
	cbz	x0, LBB0_4
; %bb.3:
	add	x0, x19, #4
	ldr	w1, [sp, #24]
Lloh0:
	adrp	x8, _GPIOF_OUT_INIT_HIGH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPIOF_OUT_INIT_HIGH@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x3, l_.str.2@PAGE
Lloh4:
	add	x3, x3, l_.str.2@PAGEOFF
	bl	_devm_gpio_request_one
	mov	x22, x0
	cbnz	w0, LBB0_15
LBB0_4:
	ldr	w0, [sp, #20]
	bl	_gpio_is_valid
	cbz	x0, LBB0_6
; %bb.5:
	add	x0, x19, #4
	ldr	w1, [sp, #20]
Lloh5:
	adrp	x8, _GPIOF_OUT_INIT_LOW@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GPIOF_OUT_INIT_LOW@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x3, l_.str.3@PAGE
Lloh9:
	add	x3, x3, l_.str.3@PAGEOFF
	bl	_devm_gpio_request_one
	mov	x22, x0
	cbnz	w0, LBB0_15
LBB0_6:
	ldr	w0, [sp, #24]
	bl	_gpio_is_valid
	cbz	x0, LBB0_8
; %bb.7:
	mov	w0, #1
	bl	_udelay
	ldr	w0, [sp, #24]
	mov	w1, #0
	bl	_gpio_set_value_cansleep
	mov	w0, #1
	bl	_udelay
	ldr	w0, [sp, #24]
	mov	w1, #1
	bl	_gpio_set_value_cansleep
	mov	w0, #120
	mov	w1, #240
	bl	_usleep_range
LBB0_8:
Lloh10:
	adrp	x1, _at86rf230_ops@GOTPAGE
Lloh11:
	ldr	x1, [x1, _at86rf230_ops@GOTPAGEOFF]
	mov	w0, #40
	bl	_ieee802154_alloc_hw
	cbz	x0, LBB0_16
; %bb.9:
	ldr	x20, [x0, #16]
	str	x0, [x20, #8]
	str	x19, [x20, #32]
	ldr	w8, [sp, #20]
	str	w8, [x20]
	add	x21, x19, #4
	str	x21, [x0, #8]
	ldr	x0, [x0]
	bl	_ieee802154_random_extended_addr
Lloh12:
	adrp	x1, _at86rf230_regmap_spi_config@GOTPAGE
Lloh13:
	ldr	x1, [x1, _at86rf230_regmap_spi_config@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_regmap_init_spi
	str	w0, [x20, #28]
	bl	_IS_ERR
	cbz	x0, LBB0_17
; %bb.10:
	ldr	w0, [x20, #28]
	bl	_PTR_ERR
	mov	x22, x0
	str	x22, [sp]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
LBB0_11:
	ldr	x0, [x20, #8]
	bl	_ieee802154_free_hw
	b	LBB0_15
LBB0_12:
	add	x0, x19, #4
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_15
LBB0_14:
	mov	x22, x0
	add	x0, x19, #4
	str	x22, [sp]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_15:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_16:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_13
LBB0_17:
	add	x1, x20, #24
	mov	x0, x20
	bl	_at86rf230_setup_spi_messages
	add	x1, x20, #20
	mov	x0, x20
	bl	_at86rf230_setup_spi_messages
	mov	x0, x20
	bl	_at86rf230_detect_device
	tbnz	w0, #31, LBB0_23
; %bb.18:
	add	x0, x20, #16
	bl	_init_completion
	mov	x0, x19
	mov	x1, x20
	bl	_spi_set_drvdata
	ldr	w1, [sp, #16]
	mov	x0, x20
	bl	_at86rf230_hw_init
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.19:
Lloh24:
	adrp	x8, _RG_IRQ_STATUS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RG_IRQ_STATUS@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	add	x4, sp, #28
	mov	x0, x20
	mov	w2, #255
	mov	w3, #0
	bl	_at86rf230_read_subreg
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.20:
	ldr	w0, [x19]
	bl	_irq_get_trigger_type
Lloh27:
	adrp	x8, _IRQF_TRIGGER_HIGH@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IRQF_TRIGGER_HIGH@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w8, w8, w0, eq
Lloh30:
	adrp	x9, _at86rf230_isr@GOTPAGE
Lloh31:
	ldr	x9, [x9, _at86rf230_isr@GOTPAGEOFF]
	ldr	w22, [x19]
Lloh32:
	ldr	w23, [x9]
Lloh33:
	adrp	x9, _IRQF_SHARED@GOTPAGE
Lloh34:
	ldr	x9, [x9, _IRQF_SHARED@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w24, w9, w8
	mov	x0, x21
	bl	_dev_name
	mov	x4, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	mov	x5, x20
	bl	_devm_request_irq
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.21:
	ldr	w0, [x19]
	bl	_disable_irq
	mov	x0, x20
	bl	_at86rf230_sleep
	mov	x0, x20
	bl	_at86rf230_debugfs_init
	ldr	x0, [x20, #8]
	bl	_ieee802154_register_hw
	mov	x22, x0
	cbz	w0, LBB0_15
; %bb.22:
	bl	_at86rf230_debugfs_remove
	b	LBB0_11
LBB0_23:
	mov	x22, x0
	b	LBB0_11
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no IRQ specified\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"failed to parse platform_data: %d\n"

	.comm	_GPIOF_OUT_INIT_HIGH,4,2        ; @GPIOF_OUT_INIT_HIGH
l_.str.2:                               ; @.str.2
	.asciz	"rstn"

	.comm	_GPIOF_OUT_INIT_LOW,4,2         ; @GPIOF_OUT_INIT_LOW
l_.str.3:                               ; @.str.3
	.asciz	"slp_tr"

	.comm	_at86rf230_ops,4,2              ; @at86rf230_ops
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_at86rf230_regmap_spi_config,4,2 ; @at86rf230_regmap_spi_config
l_.str.4:                               ; @.str.4
	.asciz	"Failed to allocate register map: %d\n"

	.comm	_RG_IRQ_STATUS,4,2              ; @RG_IRQ_STATUS
	.comm	_IRQF_TRIGGER_HIGH,4,2          ; @IRQF_TRIGGER_HIGH
	.comm	_at86rf230_isr,4,2              ; @at86rf230_isr
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.no_dead_strip	_at86rf230_probe
.subsections_via_symbols
