	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p54spi_probe
_p54spi_probe:                          ## @p54spi_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
	movl	$48, %edi
	callq	_p54_init_common
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	(%rax), %r14
	movq	%rax, (%r14)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_spi_set_drvdata
	movq	%r12, 8(%r14)
	movabsq	$103079215104000016, %rax       ## imm = 0x16E360000000010
	movq	%rax, (%r12)
	movq	%r12, %rdi
	callq	_spi_setup
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	_p54spi_gpio_power@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_gpio_request
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	_p54spi_gpio_irq@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_gpio_request
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	_p54spi_gpio_power@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_gpio_direction_output
	movl	(%r13), %edi
	callq	_gpio_direction_input
	movl	(%r13), %edi
	callq	_gpio_to_irq
	movq	_p54spi_interrupt@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	8(%r14), %r8
	leaq	L_.str.6(%rip), %rcx
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_request_irq
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movl	(%r13), %edi
	callq	_gpio_to_irq
	movq	_IRQ_TYPE_EDGE_RISING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_irq_set_irq_type
	movl	(%r13), %edi
	callq	_gpio_to_irq
	movl	%eax, %edi
	callq	_disable_irq
	leaq	44(%r14), %rdi
	movq	_p54spi_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	40(%r14), %rdi
	callq	_init_completion
	leaq	36(%r14), %rdi
	callq	_INIT_LIST_HEAD
	leaq	32(%r14), %rdi
	callq	_mutex_init
	leaq	28(%r14), %rdi
	callq	_spin_lock_init
	leaq	8(%r12), %rsi
	movq	%r15, %rdi
	callq	_SET_IEEE80211_DEV
	movq	_p54spi_op_start@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	_p54spi_op_stop@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movq	_p54spi_op_tx@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	%r15, %rdi
	callq	_p54spi_request_firmware
	testl	%eax, %eax
	js	LBB0_11
## %bb.16:
	movq	%r15, %rdi
	callq	_p54spi_request_eeprom
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.17:
	movq	8(%r14), %rsi
	addq	$8, %rsi
	movq	%r15, %rdi
	callq	_p54_register_common
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.18:
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_1:
	addq	$8, %r12
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_3:
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	addq	$8, %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_15
LBB0_5:
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	addq	$8, %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_15
LBB0_7:
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	addq	$8, %rdi
	leaq	L_.str.5(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_14
LBB0_9:
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	addq	$8, %rdi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_13
LBB0_11:
	movl	%eax, %ebx
LBB0_12:
	movl	(%r13), %edi
	callq	_gpio_to_irq
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_free_irq
LBB0_13:
	movl	(%r13), %edi
	callq	_gpio_free
LBB0_14:
	movq	_p54spi_gpio_power@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gpio_free
LBB0_15:
	movq	(%r14), %rdi
	callq	_p54_free_common
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not alloc ieee80211_hw"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"spi_setup failed"

	.comm	_p54spi_gpio_power,4,2          ## @p54spi_gpio_power
L_.str.2:                               ## @.str.2
	.asciz	"p54spi power"

L_.str.3:                               ## @.str.3
	.asciz	"power GPIO request failed: %d"

	.comm	_p54spi_gpio_irq,4,2            ## @p54spi_gpio_irq
L_.str.4:                               ## @.str.4
	.asciz	"p54spi irq"

L_.str.5:                               ## @.str.5
	.asciz	"irq GPIO request failed: %d"

	.comm	_p54spi_interrupt,4,2           ## @p54spi_interrupt
L_.str.6:                               ## @.str.6
	.asciz	"p54spi"

L_.str.7:                               ## @.str.7
	.asciz	"request_irq() failed"

	.comm	_IRQ_TYPE_EDGE_RISING,4,2       ## @IRQ_TYPE_EDGE_RISING
	.comm	_p54spi_work,4,2                ## @p54spi_work
	.comm	_p54spi_op_start,4,2            ## @p54spi_op_start
	.comm	_p54spi_op_stop,4,2             ## @p54spi_op_stop
	.comm	_p54spi_op_tx,4,2               ## @p54spi_op_tx
	.no_dead_strip	_p54spi_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function p54spi_probe
lCPI0_0:
	.long	16                              ; 0x10
	.long	24000000                        ; 0x16e3600
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_p54spi_probe:                          ; @p54spi_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	x20, x0
	mov	w0, #48
	bl	_p54_init_common
	cbz	x0, LBB0_8
; %bb.1:
	mov	x21, x0
	ldr	x19, [x0]
	str	x0, [x19]
	mov	x0, x20
	mov	x1, x19
	bl	_spi_set_drvdata
	str	x20, [x19, #8]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x20]
	mov	x0, x20
	bl	_spi_setup
	tbnz	w0, #31, LBB0_9
; %bb.2:
Lloh2:
	adrp	x23, _p54spi_gpio_power@GOTPAGE
Lloh3:
	ldr	x23, [x23, _p54spi_gpio_power@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_gpio_request
	tbnz	w0, #31, LBB0_10
; %bb.3:
Lloh6:
	adrp	x24, _p54spi_gpio_irq@GOTPAGE
Lloh7:
	ldr	x24, [x24, _p54spi_gpio_irq@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_gpio_request
	tbnz	w0, #31, LBB0_11
; %bb.4:
	ldr	w0, [x23]
	mov	w1, #0
	bl	_gpio_direction_output
	ldr	w0, [x24]
	bl	_gpio_direction_input
	ldr	w0, [x24]
	bl	_gpio_to_irq
Lloh10:
	adrp	x8, _p54spi_interrupt@GOTPAGE
Lloh11:
	ldr	x8, [x8, _p54spi_interrupt@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	x4, [x19, #8]
Lloh13:
	adrp	x3, l_.str.6@PAGE
Lloh14:
	add	x3, x3, l_.str.6@PAGEOFF
	mov	w2, #0
	bl	_request_irq
	tbnz	w0, #31, LBB0_12
; %bb.5:
	ldr	w0, [x24]
	bl	_gpio_to_irq
Lloh15:
	adrp	x8, _IRQ_TYPE_EDGE_RISING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IRQ_TYPE_EDGE_RISING@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_irq_set_irq_type
	ldr	w0, [x24]
	bl	_gpio_to_irq
	bl	_disable_irq
	add	x0, x19, #44
Lloh18:
	adrp	x8, _p54spi_work@GOTPAGE
Lloh19:
	ldr	x8, [x8, _p54spi_work@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #40
	bl	_init_completion
	add	x0, x19, #36
	bl	_INIT_LIST_HEAD
	add	x0, x19, #32
	bl	_mutex_init
	add	x0, x19, #28
	bl	_spin_lock_init
	add	x1, x20, #8
	mov	x0, x21
	bl	_SET_IEEE80211_DEV
Lloh21:
	adrp	x8, _p54spi_op_start@GOTPAGE
Lloh22:
	ldr	x8, [x8, _p54spi_op_start@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh24:
	adrp	x8, _p54spi_op_stop@GOTPAGE
Lloh25:
	ldr	x8, [x8, _p54spi_op_stop@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _p54spi_op_tx@GOTPAGE
Lloh28:
	ldr	x9, [x9, _p54spi_op_tx@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
	mov	x0, x21
	bl	_p54spi_request_firmware
	tbnz	w0, #31, LBB0_13
; %bb.6:
	mov	x0, x21
	bl	_p54spi_request_eeprom
	mov	x22, x0
	cbnz	w0, LBB0_14
; %bb.7:
	ldr	x8, [x19, #8]
	add	x1, x8, #8
	mov	x0, x21
	bl	_p54_register_common
	mov	x22, x0
	cbnz	w0, LBB0_14
	b	LBB0_18
LBB0_8:
	add	x0, x20, #8
Lloh30:
	adrp	x1, l_.str@PAGE
Lloh31:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh32:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_18
LBB0_9:
	mov	x22, x0
	ldr	x8, [x19, #8]
	add	x0, x8, #8
Lloh35:
	adrp	x1, l_.str.1@PAGE
Lloh36:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_17
LBB0_10:
	mov	x22, x0
	ldr	x8, [x19, #8]
	add	x0, x8, #8
	str	x22, [sp]
Lloh37:
	adrp	x1, l_.str.3@PAGE
Lloh38:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	b	LBB0_17
LBB0_11:
	mov	x22, x0
	ldr	x8, [x19, #8]
	add	x0, x8, #8
	str	x22, [sp]
Lloh39:
	adrp	x1, l_.str.5@PAGE
Lloh40:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_16
LBB0_12:
	mov	x22, x0
	ldr	x8, [x19, #8]
	add	x0, x8, #8
Lloh41:
	adrp	x1, l_.str.7@PAGE
Lloh42:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_dev_err
	b	LBB0_15
LBB0_13:
	mov	x22, x0
LBB0_14:
	ldr	w0, [x24]
	bl	_gpio_to_irq
	mov	x1, x20
	bl	_free_irq
LBB0_15:
	ldr	w0, [x24]
	bl	_gpio_free
LBB0_16:
	ldr	w0, [x23]
	bl	_gpio_free
LBB0_17:
	ldr	x0, [x19]
	bl	_p54_free_common
LBB0_18:
	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 AdrpLdr	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not alloc ieee80211_hw"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"spi_setup failed"

	.comm	_p54spi_gpio_power,4,2          ; @p54spi_gpio_power
l_.str.2:                               ; @.str.2
	.asciz	"p54spi power"

l_.str.3:                               ; @.str.3
	.asciz	"power GPIO request failed: %d"

	.comm	_p54spi_gpio_irq,4,2            ; @p54spi_gpio_irq
l_.str.4:                               ; @.str.4
	.asciz	"p54spi irq"

l_.str.5:                               ; @.str.5
	.asciz	"irq GPIO request failed: %d"

	.comm	_p54spi_interrupt,4,2           ; @p54spi_interrupt
l_.str.6:                               ; @.str.6
	.asciz	"p54spi"

l_.str.7:                               ; @.str.7
	.asciz	"request_irq() failed"

	.comm	_IRQ_TYPE_EDGE_RISING,4,2       ; @IRQ_TYPE_EDGE_RISING
	.comm	_p54spi_work,4,2                ; @p54spi_work
	.comm	_p54spi_op_start,4,2            ; @p54spi_op_start
	.comm	_p54spi_op_stop,4,2             ; @p54spi_op_stop
	.comm	_p54spi_op_tx,4,2               ; @p54spi_op_tx
	.no_dead_strip	_p54spi_probe
.subsections_via_symbols
