	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw_pci_probe
_rtw_pci_probe:                         ## @rtw_pci_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	%rsi, %rbx
	movq	%rdi, %r15
	movq	_rtw_ops@GOTPCREL(%rip), %rsi
	movl	$44, %edi
	callq	_ieee80211_alloc_hw
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	(%rax), %r13
	movq	%rax, 32(%r13)
	leaq	12(%r15), %rax
	movq	%rax, 24(%r13)
	movq	(%rbx), %rax
	movq	%rax, 16(%r13)
	movq	_rtw_pci_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r13)
	movq	_RTW_HCI_TYPE_PCIE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movq	%r13, %rdi
	callq	_rtw_core_init
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_18
## %bb.3:
	movq	_RTW_DBG_PCI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %ecx
	movl	(%r15), %r9d
	movl	4(%r15), %r8d
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	callq	_rtw_dbg
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_rtw_pci_claim
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_rtw_err
	jmp	LBB0_17
LBB0_1:
	addq	$12, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_19
LBB0_5:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_rtw_pci_setup_resource
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_rtw_err
	jmp	LBB0_16
LBB0_7:
	movq	%r13, %rdi
	callq	_rtw_chip_info_setup
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movl	%eax, %r12d
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_9
LBB0_10:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_rtw_register_hw
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %r12d
	leaq	L_.str.5(%rip), %rsi
LBB0_9:
	movq	%r13, %rdi
	callq	_rtw_err
LBB0_15:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_rtw_pci_destroy
LBB0_16:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_rtw_pci_declaim
LBB0_17:
	movq	%r13, %rdi
	callq	_rtw_core_deinit
LBB0_18:
	movq	%r14, %rdi
	callq	_ieee80211_free_hw
LBB0_19:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_rtw_pci_request_irq
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_ieee80211_unregister_hw
	jmp	LBB0_15
LBB0_13:
	xorl	%r12d, %r12d
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_rtw_ops,4,2                    ## @rtw_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate hw\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_rtw_pci_ops,4,2                ## @rtw_pci_ops
	.comm	_RTW_HCI_TYPE_PCIE,4,2          ## @RTW_HCI_TYPE_PCIE
	.comm	_RTW_DBG_PCI,4,2                ## @RTW_DBG_PCI
L_.str.1:                               ## @.str.1
	.asciz	"rtw88 pci probe: vendor=0x%4.04X device=0x%4.04X rev=%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to claim pci device\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to setup pci resources\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to setup chip information\n"

L_.str.5:                               ## @.str.5
	.asciz	"failed to register hw\n"

	.no_dead_strip	_rtw_pci_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw_pci_probe
_rtw_pci_probe:                         ; @rtw_pci_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
Lloh0:
	adrp	x1, _rtw_ops@GOTPAGE
Lloh1:
	ldr	x1, [x1, _rtw_ops@GOTPAGEOFF]
	mov	w0, #44
	bl	_ieee80211_alloc_hw
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0]
	add	x8, x21, #12
	stp	x8, x0, [x20, #24]
	ldr	x8, [x22]
Lloh2:
	adrp	x9, _rtw_pci_ops@GOTPAGE
Lloh3:
	ldr	x9, [x9, _rtw_pci_ops@GOTPAGEOFF]
	stp	x9, x8, [x20, #8]
Lloh4:
	adrp	x8, _RTW_HCI_TYPE_PCIE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RTW_HCI_TYPE_PCIE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x20]
	mov	x0, x20
	bl	_rtw_core_init
	mov	x22, x0
	cbnz	w0, LBB0_15
; %bb.2:
Lloh7:
	adrp	x8, _RTW_DBG_PCI@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RTW_DBG_PCI@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldp	w4, w3, [x21, #4]
	ldr	w5, [x21]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_rtw_dbg
	mov	x0, x20
	mov	x1, x21
	bl	_rtw_pci_claim
	cbz	w0, LBB0_5
; %bb.3:
	mov	x22, x0
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_rtw_err
	b	LBB0_14
LBB0_4:
	add	x0, x21, #12
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_16
LBB0_5:
	mov	x0, x20
	mov	x1, x21
	bl	_rtw_pci_setup_resource
	cbz	w0, LBB0_7
; %bb.6:
	mov	x22, x0
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_rtw_err
	b	LBB0_13
LBB0_7:
	mov	x0, x20
	bl	_rtw_chip_info_setup
	cbz	w0, LBB0_9
; %bb.8:
	mov	x22, x0
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_11
LBB0_9:
	mov	x0, x20
	mov	x1, x19
	bl	_rtw_register_hw
	cbz	w0, LBB0_17
; %bb.10:
	mov	x22, x0
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_11:
	mov	x0, x20
	bl	_rtw_err
LBB0_12:
	mov	x0, x20
	mov	x1, x21
	bl	_rtw_pci_destroy
LBB0_13:
	mov	x0, x20
	mov	x1, x21
	bl	_rtw_pci_declaim
LBB0_14:
	mov	x0, x20
	bl	_rtw_core_deinit
LBB0_15:
	mov	x0, x19
	bl	_ieee80211_free_hw
LBB0_16:
	mov	x0, x22
	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
LBB0_17:
	mov	x0, x20
	mov	x1, x21
	bl	_rtw_pci_request_irq
	mov	x22, x0
	cbz	w0, LBB0_16
; %bb.18:
	mov	x0, x19
	bl	_ieee80211_unregister_hw
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_rtw_ops,4,2                    ; @rtw_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate hw\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_rtw_pci_ops,4,2                ; @rtw_pci_ops
	.comm	_RTW_HCI_TYPE_PCIE,4,2          ; @RTW_HCI_TYPE_PCIE
	.comm	_RTW_DBG_PCI,4,2                ; @RTW_DBG_PCI
l_.str.1:                               ; @.str.1
	.asciz	"rtw88 pci probe: vendor=0x%4.04X device=0x%4.04X rev=%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to claim pci device\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to setup pci resources\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to setup chip information\n"

l_.str.5:                               ; @.str.5
	.asciz	"failed to register hw\n"

	.no_dead_strip	_rtw_pci_probe
.subsections_via_symbols
