	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mrf24j40_probe
_mrf24j40_probe:                        ## @mrf24j40_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	leaq	8(%rdi), %r14
	movl	12(%rdi), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movq	_mrf24j40_ops@GOTPCREL(%rip), %rsi
	movl	$24, %edi
	callq	_ieee802154_alloc_hw
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	%rax, %rbx
	movq	24(%rax), %r15
	movq	%r12, 16(%r15)
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_spi_set_drvdata
	movq	%rbx, (%r15)
	movq	%r14, 16(%rbx)
	movq	_CHANNEL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rbx), %rcx
	movq	8(%rcx), %rdx
	movl	%eax, (%rdx)
	movq	_IEEE802154_HW_TX_OMIT_CKSUM@GOTPCREL(%rip), %rax
	movq	_IEEE802154_HW_AFILT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	movq	_IEEE802154_HW_CSMA_PARAMS@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_IEEE802154_HW_PROMISCUOUS@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, (%rbx)
	movq	_WPAN_PHY_FLAG_CCA_MODE@GOTPCREL(%rip), %rax
	movq	_WPAN_PHY_FLAG_CCA_ED_LEVEL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	movl	%edx, (%rcx)
	movq	%r15, %rdi
	callq	_mrf24j40_setup_tx_spi_messages
	movq	%r15, %rdi
	callq	_mrf24j40_setup_rx_spi_messages
	movq	%r15, %rdi
	callq	_mrf24j40_setup_irq_spi_messages
	movq	_mrf24j40_short_regmap@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_regmap_init_spi
	movl	%eax, 12(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	12(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %r13d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_3
LBB0_4:
	movq	_mrf24j40_long_regmap_bus@GOTPCREL(%rip), %rsi
	movq	_mrf24j40_long_regmap@GOTPCREL(%rip), %rcx
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_devm_regmap_init
	movl	%eax, 8(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	8(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %r13d
	leaq	L_.str.2(%rip), %rsi
LBB0_3:
	movl	%r14d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_13:
	movq	(%r15), %rdi
	callq	_ieee802154_free_hw
LBB0_16:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_MAX_SPI_SPEED_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	cmpq	%rdx, (%r12)
	jle	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_13
LBB0_8:
	movq	%r15, %rdi
	callq	_mrf24j40_hw_init
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.9:
	movq	%r15, %rdi
	callq	_mrf24j40_phy_setup
	movl	12(%r12), %edi
	callq	_irq_get_trigger_type
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	_IRQF_TRIGGER_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_11:
	movl	12(%r12), %r12d
	movq	_mrf24j40_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r14, %rdi
	callq	_dev_name
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	movq	%r15, %r9
	callq	_devm_request_irq
	movl	%eax, %r13d
	movq	%r15, %rdi
	callq	_printdev
	movl	%eax, %edi
	testl	%r13d, %r13d
	je	LBB0_14
## %bb.12:
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_13
LBB0_14:
	leaq	L_.str.5(%rip), %rsi
	callq	_dev_dbg
	movq	(%r15), %rdi
	callq	_ieee802154_register_hw
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.15:
	xorl	%r13d, %r13d
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"probe(). IRQ: %d\n"

	.comm	_mrf24j40_ops,4,2               ## @mrf24j40_ops
	.comm	_CHANNEL_MASK,4,2               ## @CHANNEL_MASK
	.comm	_IEEE802154_HW_TX_OMIT_CKSUM,4,2 ## @IEEE802154_HW_TX_OMIT_CKSUM
	.comm	_IEEE802154_HW_AFILT,4,2        ## @IEEE802154_HW_AFILT
	.comm	_IEEE802154_HW_CSMA_PARAMS,4,2  ## @IEEE802154_HW_CSMA_PARAMS
	.comm	_IEEE802154_HW_PROMISCUOUS,4,2  ## @IEEE802154_HW_PROMISCUOUS
	.comm	_WPAN_PHY_FLAG_CCA_MODE,4,2     ## @WPAN_PHY_FLAG_CCA_MODE
	.comm	_WPAN_PHY_FLAG_CCA_ED_LEVEL,4,2 ## @WPAN_PHY_FLAG_CCA_ED_LEVEL
	.comm	_mrf24j40_short_regmap,4,2      ## @mrf24j40_short_regmap
L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate short register map: %d\n"

	.comm	_mrf24j40_long_regmap_bus,4,2   ## @mrf24j40_long_regmap_bus
	.comm	_mrf24j40_long_regmap,4,2       ## @mrf24j40_long_regmap
L_.str.2:                               ## @.str.2
	.asciz	"Failed to allocate long register map: %d\n"

	.comm	_MAX_SPI_SPEED_HZ,8,3           ## @MAX_SPI_SPEED_HZ
L_.str.3:                               ## @.str.3
	.asciz	"spi clock above possible maximum: %d"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IRQF_TRIGGER_LOW,4,2           ## @IRQF_TRIGGER_LOW
	.comm	_mrf24j40_isr,4,2               ## @mrf24j40_isr
L_.str.4:                               ## @.str.4
	.asciz	"Unable to get IRQ"

L_.str.5:                               ## @.str.5
	.asciz	"registered mrf24j40\n"

	.no_dead_strip	_mrf24j40_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mrf24j40_probe
_mrf24j40_probe:                        ; @mrf24j40_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	add	x20, x0, #8
	ldr	w2, [x0, #12]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_info
Lloh5:
	adrp	x1, _mrf24j40_ops@GOTPAGE
Lloh6:
	ldr	x1, [x1, _mrf24j40_ops@GOTPAGEOFF]
	mov	w0, #24
	bl	_ieee802154_alloc_hw
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	ldr	x19, [x0, #24]
	str	x21, [x19, #16]
	mov	x0, x21
	mov	x1, x19
	bl	_spi_set_drvdata
Lloh7:
	adrp	x8, _CHANNEL_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CHANNEL_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	x9, [x22, #8]
	ldr	x10, [x9, #8]
	str	w8, [x10]
Lloh10:
	adrp	x8, _IEEE802154_HW_TX_OMIT_CKSUM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IEEE802154_HW_TX_OMIT_CKSUM@GOTPAGEOFF]
	str	x22, [x19]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x10, _IEEE802154_HW_AFILT@GOTPAGE
Lloh14:
	ldr	x10, [x10, _IEEE802154_HW_AFILT@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	orr	w8, w10, w8
Lloh16:
	adrp	x10, _IEEE802154_HW_CSMA_PARAMS@GOTPAGE
Lloh17:
	ldr	x10, [x10, _IEEE802154_HW_CSMA_PARAMS@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	orr	w8, w8, w10
Lloh19:
	adrp	x10, _IEEE802154_HW_PROMISCUOUS@GOTPAGE
Lloh20:
	ldr	x10, [x10, _IEEE802154_HW_PROMISCUOUS@GOTPAGEOFF]
	str	x20, [x22, #16]
Lloh21:
	ldr	w10, [x10]
	orr	w8, w8, w10
	str	w8, [x22]
Lloh22:
	adrp	x8, _WPAN_PHY_FLAG_CCA_MODE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _WPAN_PHY_FLAG_CCA_MODE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x10, _WPAN_PHY_FLAG_CCA_ED_LEVEL@GOTPAGE
Lloh26:
	ldr	x10, [x10, _WPAN_PHY_FLAG_CCA_ED_LEVEL@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	orr	w8, w10, w8
	str	w8, [x9]
	mov	x0, x19
	bl	_mrf24j40_setup_tx_spi_messages
	mov	x0, x19
	bl	_mrf24j40_setup_rx_spi_messages
	mov	x0, x19
	bl	_mrf24j40_setup_irq_spi_messages
Lloh28:
	adrp	x1, _mrf24j40_short_regmap@GOTPAGE
Lloh29:
	ldr	x1, [x1, _mrf24j40_short_regmap@GOTPAGEOFF]
	mov	x0, x21
	bl	_devm_regmap_init_spi
	str	w0, [x19, #12]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x19, #12]
	bl	_PTR_ERR
	mov	x22, x0
	str	x22, [sp]
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_12
LBB0_3:
	neg	w22, w19
	b	LBB0_13
LBB0_4:
Lloh32:
	adrp	x1, _mrf24j40_long_regmap_bus@GOTPAGE
Lloh33:
	ldr	x1, [x1, _mrf24j40_long_regmap_bus@GOTPAGEOFF]
Lloh34:
	adrp	x3, _mrf24j40_long_regmap@GOTPAGE
Lloh35:
	ldr	x3, [x3, _mrf24j40_long_regmap@GOTPAGEOFF]
	mov	x0, x20
	mov	x2, x21
	bl	_devm_regmap_init
	str	w0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x19, #8]
	bl	_PTR_ERR
	mov	x22, x0
	str	x22, [sp]
Lloh36:
	adrp	x1, l_.str.2@PAGE
Lloh37:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_12
LBB0_6:
	ldr	x8, [x21]
Lloh38:
	adrp	x9, _MAX_SPI_SPEED_HZ@GOTPAGE
Lloh39:
	ldr	x9, [x9, _MAX_SPI_SPEED_HZ@GOTPAGEOFF]
Lloh40:
	ldr	x2, [x9]
	cmp	x8, x2
	b.le	LBB0_8
; %bb.7:
Lloh41:
	adrp	x1, l_.str.3@PAGE
Lloh42:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
Lloh43:
	adrp	x8, _EINVAL@GOTPAGE
Lloh44:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_12
LBB0_8:
	mov	x0, x19
	bl	_mrf24j40_hw_init
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.9:
	mov	x0, x19
	bl	_mrf24j40_phy_setup
	ldr	w0, [x21, #12]
	bl	_irq_get_trigger_type
Lloh46:
	adrp	x8, _IRQF_TRIGGER_LOW@GOTPAGE
Lloh47:
	ldr	x8, [x8, _IRQF_TRIGGER_LOW@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w22, w8, w0, eq
	ldr	w21, [x21, #12]
Lloh49:
	adrp	x8, _mrf24j40_isr@GOTPAGE
Lloh50:
	ldr	x8, [x8, _mrf24j40_isr@GOTPAGEOFF]
Lloh51:
	ldr	w23, [x8]
	mov	x0, x20
	bl	_dev_name
	mov	x4, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	mov	x3, x22
	mov	x5, x19
	bl	_devm_request_irq
	mov	x22, x0
	mov	x0, x19
	bl	_printdev
	cbz	w22, LBB0_11
; %bb.10:
Lloh52:
	adrp	x1, l_.str.4@PAGE
Lloh53:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_err
	b	LBB0_12
LBB0_11:
Lloh54:
	adrp	x1, l_.str.5@PAGE
Lloh55:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_dbg
	ldr	x0, [x19]
	bl	_ieee802154_register_hw
	mov	x22, x0
	cbz	w0, LBB0_13
LBB0_12:
	ldr	x0, [x19]
	bl	_ieee802154_free_hw
LBB0_13:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"probe(). IRQ: %d\n"

	.comm	_mrf24j40_ops,4,2               ; @mrf24j40_ops
	.comm	_CHANNEL_MASK,4,2               ; @CHANNEL_MASK
	.comm	_IEEE802154_HW_TX_OMIT_CKSUM,4,2 ; @IEEE802154_HW_TX_OMIT_CKSUM
	.comm	_IEEE802154_HW_AFILT,4,2        ; @IEEE802154_HW_AFILT
	.comm	_IEEE802154_HW_CSMA_PARAMS,4,2  ; @IEEE802154_HW_CSMA_PARAMS
	.comm	_IEEE802154_HW_PROMISCUOUS,4,2  ; @IEEE802154_HW_PROMISCUOUS
	.comm	_WPAN_PHY_FLAG_CCA_MODE,4,2     ; @WPAN_PHY_FLAG_CCA_MODE
	.comm	_WPAN_PHY_FLAG_CCA_ED_LEVEL,4,2 ; @WPAN_PHY_FLAG_CCA_ED_LEVEL
	.comm	_mrf24j40_short_regmap,4,2      ; @mrf24j40_short_regmap
l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate short register map: %d\n"

	.comm	_mrf24j40_long_regmap_bus,4,2   ; @mrf24j40_long_regmap_bus
	.comm	_mrf24j40_long_regmap,4,2       ; @mrf24j40_long_regmap
l_.str.2:                               ; @.str.2
	.asciz	"Failed to allocate long register map: %d\n"

	.comm	_MAX_SPI_SPEED_HZ,8,3           ; @MAX_SPI_SPEED_HZ
l_.str.3:                               ; @.str.3
	.asciz	"spi clock above possible maximum: %d"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IRQF_TRIGGER_LOW,4,2           ; @IRQF_TRIGGER_LOW
	.comm	_mrf24j40_isr,4,2               ; @mrf24j40_isr
l_.str.4:                               ; @.str.4
	.asciz	"Unable to get IRQ"

l_.str.5:                               ; @.str.5
	.asciz	"registered mrf24j40\n"

	.no_dead_strip	_mrf24j40_probe
.subsections_via_symbols
