	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00soc_probe                ## -- Begin function rt2x00soc_probe
	.p2align	4, 0x90
_rt2x00soc_probe:                       ## @rt2x00soc_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	(%rsi), %esi
	movl	$40, %edi
	callq	_ieee80211_alloc_hw
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	(%r14), %rbx
	movq	%r15, 32(%rbx)
	movq	%r12, 24(%rbx)
	movq	%r14, 16(%rbx)
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, 12(%rbx)
	movq	(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_clk_get
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	$0, (%rbx)
LBB0_4:
	movq	_RT2X00_CHIP_INTF_SOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rt2x00_set_chip_intf
	movq	%rbx, %rdi
	callq	_rt2x00soc_alloc_reg
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movq	%rbx, %rdi
	callq	_rt2x00lib_probe_dev
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_rt2x00soc_free_reg
LBB0_8:
	movq	%r14, %rdi
	callq	_ieee80211_free_hw
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_rt2x00_probe_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_9
LBB0_6:
	xorl	%r15d, %r15d
LBB0_9:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate hardware\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_RT2X00_CHIP_INTF_SOC,4,2       ## @RT2X00_CHIP_INTF_SOC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00soc_probe                ; -- Begin function rt2x00soc_probe
	.p2align	2
_rt2x00soc_probe:                       ; @rt2x00soc_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x22, x1
	mov	x21, x0
	ldr	w1, [x1]
	mov	w0, #40
	bl	_ieee80211_alloc_hw
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	mov	x0, x21
	mov	x1, x19
	bl	_platform_set_drvdata
	ldr	x20, [x19]
	stp	x22, x21, [x20, #24]
	str	x19, [x20, #16]
	mov	x0, x21
	mov	w1, #0
	bl	_platform_get_irq
	ldr	x8, [x21]
	ldr	w8, [x8]
	stp	w8, w0, [x20, #8]
	mov	x0, x21
	mov	x1, #0
	bl	_clk_get
	str	x0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
	str	xzr, [x20]
LBB0_3:
Lloh0:
	adrp	x8, _RT2X00_CHIP_INTF_SOC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RT2X00_CHIP_INTF_SOC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_set_chip_intf
	mov	x0, x20
	bl	_rt2x00soc_alloc_reg
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.4:
	mov	x0, x20
	bl	_rt2x00lib_probe_dev
	mov	x21, x0
	cbz	w0, LBB0_8
; %bb.5:
	mov	x0, x20
	bl	_rt2x00soc_free_reg
LBB0_6:
	mov	x0, x19
	bl	_ieee80211_free_hw
	b	LBB0_8
LBB0_7:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_rt2x00_probe_err
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate hardware\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_RT2X00_CHIP_INTF_SOC,4,2       ; @RT2X00_CHIP_INTF_SOC
.subsections_via_symbols
