	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath_pci_probe
_ath_pci_probe:                         ## @ath_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
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_pcim_enable_device
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_24
LBB0_2:
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_pci_set_dma_mask
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_24
LBB0_4:
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_pci_set_consistent_dma_mask
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_24
LBB0_6:
	movq	_PCI_CACHE_LINE_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-120(%rbp), %rdx
	movq	%r12, %rdi
	callq	_pci_read_config_byte
	cmpl	$0, -120(%rbp)
	jne	LBB0_8
## %bb.7:
	movq	_L1_CACHE_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	sarl	$2, %edx
	movl	%edx, -120(%rbp)
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_pci_write_config_byte
LBB0_8:
	movq	_PCI_LATENCY_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$168, %edx
	callq	_pci_write_config_byte
	movq	%r12, %rdi
	callq	_pci_set_master
	leaq	-132(%rbp), %rdx
	movq	%r12, %rdi
	movl	$64, %esi
	callq	_pci_read_config_dword
	movl	-132(%rbp), %edx
	testl	$65280, %edx                    ## imm = 0xFF00
	je	LBB0_10
## %bb.9:
	andl	$-65281, %edx                   ## imm = 0xFFFF00FF
	movq	%r12, %rdi
	movl	$64, %esi
	callq	_pci_write_config_dword
LBB0_10:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_BIT
	leaq	L_.str.2(%rip), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_pcim_iomap_regions
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	addq	$4, %r12
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_24
LBB0_12:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_ath9k_fill_chanctx_ops
	movq	_ath9k_ops@GOTPCREL(%rip), %rsi
	movl	$48, %edi
	callq	_ieee80211_alloc_hw
	movq	%rax, %r15
	leaq	4(%r12), %rax
	testq	%r15, %r15
	je	LBB0_13
## %bb.14:
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	%rax, %rbx
	callq	_SET_IEEE80211_DEV
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_pci_set_drvdata
	movq	8(%r15), %r13
	movq	%r15, 40(%r13)
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	movq	%rbx, 32(%r13)
	movq	%r12, %rdi
	callq	_pcim_iomap_table
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
	movl	4(%r14), %eax
	movl	%eax, 24(%r13)
	movq	_ath9k_use_msi@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_17
## %bb.15:
	movq	%r12, %rdi
	callq	_pci_enable_msi
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	leaq	L_.str.6(%rip), %rsi
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	callq	_dev_err
LBB0_17:
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, -116(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_19
LBB0_13:
	leaq	L_.str.4(%rip), %rsi
	movq	%rax, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_24
LBB0_18:
	leaq	L_.str.5(%rip), %rsi
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	callq	_dev_err
	movl	$1, -116(%rbp)                  ## 4-byte Folded Spill
	xorl	%edx, %edx
LBB0_19:
	movl	(%r12), %edi
	movq	_ath_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rcx
	movq	%r13, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rsi
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	callq	_dev_err
	jmp	LBB0_23
LBB0_21:
	movl	(%r12), %eax
	movl	%eax, (%r13)
	movl	(%r14), %edi
	movq	_ath_pci_bus_ops@GOTPCREL(%rip), %rdx
	movq	%r13, %rsi
	callq	_ath9k_init_device
	testl	%eax, %eax
	je	LBB0_26
## %bb.22:
	movl	%eax, %ebx
	leaq	L_.str.8(%rip), %rsi
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	callq	_dev_err
	movl	(%r13), %edi
	movq	%r13, %rsi
	callq	_free_irq
LBB0_23:
	movq	%r15, %rdi
	callq	_ieee80211_free_hw
LBB0_24:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_27
## %bb.25:
	movl	%ebx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	movq	16(%r13), %rdi
	movl	-116(%rbp), %eax                ## 4-byte Reload
	movl	%eax, (%rdi)
	movq	$0, 8(%rdi)
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rsi
	movl	$64, %edx
	callq	_ath9k_hw_name
	movl	(%r15), %edi
	movq	8(%r13), %rcx
	movl	(%r12), %r8d
	leaq	L_.str.9(%rip), %rsi
	movq	%rbx, %rdx
	callq	_wiphy_info
	xorl	%ebx, %ebx
	jmp	LBB0_24
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"32-bit DMA not available\n"

L_.str.1:                               ## @.str.1
	.asciz	"32-bit DMA consistent DMA enable failed\n"

	.comm	_PCI_CACHE_LINE_SIZE,4,2        ## @PCI_CACHE_LINE_SIZE
	.comm	_L1_CACHE_BYTES,4,2             ## @L1_CACHE_BYTES
	.comm	_PCI_LATENCY_TIMER,4,2          ## @PCI_LATENCY_TIMER
L_.str.2:                               ## @.str.2
	.asciz	"ath9k"

L_.str.3:                               ## @.str.3
	.asciz	"PCI memory region reserve error\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ath9k_ops,4,2                  ## @ath9k_ops
L_.str.4:                               ## @.str.4
	.asciz	"No memory for ieee80211_hw\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ath9k_use_msi,8,3              ## @ath9k_use_msi
L_.str.5:                               ## @.str.5
	.asciz	"Using MSI\n"

L_.str.6:                               ## @.str.6
	.asciz	"Using INTx\n"

	.comm	_ath_isr,4,2                    ## @ath_isr
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.7:                               ## @.str.7
	.asciz	"request_irq failed\n"

	.comm	_ath_pci_bus_ops,4,2            ## @ath_pci_bus_ops
L_.str.8:                               ## @.str.8
	.asciz	"Failed to initialize device\n"

L_.str.9:                               ## @.str.9
	.asciz	"%s mem=0x%lx, irq=%d\n"

	.no_dead_strip	_ath_pci_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath_pci_probe
_ath_pci_probe:                         ; @ath_pci_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	bl	_pcim_enable_device
	cbz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_8
LBB0_3:
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_pci_set_dma_mask
	cbz	w0, LBB0_5
; %bb.4:
	mov	x24, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_pci_set_consistent_dma_mask
	cbz	w0, LBB0_10
; %bb.6:
	mov	x24, x0
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_7:
	bl	_pr_err
LBB0_8:
	ldr	x8, [sp, #72]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.9:
	mov	x0, x24
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_10:
Lloh12:
	adrp	x21, _PCI_CACHE_LINE_SIZE@GOTPAGE
Lloh13:
	ldr	x21, [x21, _PCI_CACHE_LINE_SIZE@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #4
	mov	x0, x19
	bl	_pci_read_config_byte
	ldr	w8, [sp, #4]
	cbnz	w8, LBB0_12
; %bb.11:
Lloh14:
	adrp	x8, _L1_CACHE_BYTES@GOTPAGE
Lloh15:
	ldr	x8, [x8, _L1_CACHE_BYTES@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	asr	w2, w8, #2
	str	w2, [sp, #4]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_pci_write_config_byte
LBB0_12:
Lloh17:
	adrp	x8, _PCI_LATENCY_TIMER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PCI_LATENCY_TIMER@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #168
	bl	_pci_write_config_byte
	mov	x0, x19
	bl	_pci_set_master
	mov	x2, sp
	mov	x0, x19
	mov	w1, #64
	bl	_pci_read_config_dword
	ldr	w8, [sp]
	tst	w8, #0xff00
	b.eq	LBB0_14
; %bb.13:
	and	w2, w8, #0xffff00ff
	mov	x0, x19
	mov	w1, #64
	bl	_pci_write_config_dword
LBB0_14:
	mov	w0, #0
	bl	_BIT
	mov	x1, x0
Lloh20:
	adrp	x2, l_.str.2@PAGE
Lloh21:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_pcim_iomap_regions
	cbz	w0, LBB0_16
; %bb.15:
	add	x0, x19, #4
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
Lloh24:
	adrp	x8, _ENODEV@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_2
LBB0_16:
	bl	_ath9k_fill_chanctx_ops
Lloh26:
	adrp	x1, _ath9k_ops@GOTPAGE
Lloh27:
	ldr	x1, [x1, _ath9k_ops@GOTPAGEOFF]
	mov	w0, #48
	bl	_ieee80211_alloc_hw
	add	x22, x19, #4
	cbz	x0, LBB0_21
; %bb.17:
	mov	x21, x0
	mov	x1, x22
	bl	_SET_IEEE80211_DEV
	mov	x0, x19
	mov	x1, x21
	bl	_pci_set_drvdata
	ldr	x23, [x21, #8]
	stp	x22, x21, [x23, #32]
	mov	x0, x19
	bl	_pcim_iomap_table
	ldr	x8, [x0]
	str	x8, [x23, #8]
	ldr	w8, [x20, #4]
	str	w8, [x23, #24]
Lloh28:
	adrp	x8, _ath9k_use_msi@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ath9k_use_msi@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	cbz	x8, LBB0_20
; %bb.18:
	mov	x0, x19
	bl	_pci_enable_msi
	cbz	x0, LBB0_22
; %bb.19:
Lloh31:
	adrp	x1, l_.str.6@PAGE
Lloh32:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x22
	bl	_dev_err
LBB0_20:
	mov	w25, #0
Lloh33:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	b	LBB0_23
LBB0_21:
Lloh36:
	adrp	x1, l_.str.4@PAGE
Lloh37:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_dev_err
Lloh38:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_22:
Lloh40:
	adrp	x1, l_.str.5@PAGE
Lloh41:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x22
	bl	_dev_err
	mov	w2, #0
	mov	w25, #1
LBB0_23:
	ldr	w0, [x19]
Lloh42:
	adrp	x8, _ath_isr@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ath_isr@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
Lloh45:
	adrp	x3, l_.str.2@PAGE
Lloh46:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x4, x23
	bl	_request_irq
	cbz	w0, LBB0_25
; %bb.24:
	mov	x24, x0
Lloh47:
	adrp	x1, l_.str.7@PAGE
Lloh48:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x22
	bl	_dev_err
	b	LBB0_27
LBB0_25:
	ldr	w8, [x19]
	str	w8, [x23]
	ldr	w0, [x20]
Lloh49:
	adrp	x2, _ath_pci_bus_ops@GOTPAGE
Lloh50:
	ldr	x2, [x2, _ath_pci_bus_ops@GOTPAGEOFF]
	mov	x1, x23
	bl	_ath9k_init_device
	mov	x24, x0
	cbz	w0, LBB0_28
; %bb.26:
Lloh51:
	adrp	x1, l_.str.8@PAGE
Lloh52:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x22
	bl	_dev_err
	ldr	w0, [x23]
	mov	x1, x23
	bl	_free_irq
LBB0_27:
	mov	x0, x21
	bl	_ieee80211_free_hw
	b	LBB0_8
LBB0_28:
	ldr	x0, [x23, #16]
	str	w25, [x0]
	str	xzr, [x0, #8]
	add	x1, sp, #8
	mov	w2, #64
	bl	_ath9k_hw_name
	ldr	w0, [x21]
	ldr	x3, [x23, #8]
	ldr	w4, [x19]
Lloh53:
	adrp	x1, l_.str.9@PAGE
Lloh54:
	add	x1, x1, l_.str.9@PAGEOFF
	add	x2, sp, #8
	bl	_wiphy_info
	b	LBB0_8
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"32-bit DMA not available\n"

l_.str.1:                               ; @.str.1
	.asciz	"32-bit DMA consistent DMA enable failed\n"

	.comm	_PCI_CACHE_LINE_SIZE,4,2        ; @PCI_CACHE_LINE_SIZE
	.comm	_L1_CACHE_BYTES,4,2             ; @L1_CACHE_BYTES
	.comm	_PCI_LATENCY_TIMER,4,2          ; @PCI_LATENCY_TIMER
l_.str.2:                               ; @.str.2
	.asciz	"ath9k"

l_.str.3:                               ; @.str.3
	.asciz	"PCI memory region reserve error\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ath9k_ops,4,2                  ; @ath9k_ops
l_.str.4:                               ; @.str.4
	.asciz	"No memory for ieee80211_hw\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ath9k_use_msi,8,3              ; @ath9k_use_msi
l_.str.5:                               ; @.str.5
	.asciz	"Using MSI\n"

l_.str.6:                               ; @.str.6
	.asciz	"Using INTx\n"

	.comm	_ath_isr,4,2                    ; @ath_isr
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.7:                               ; @.str.7
	.asciz	"request_irq failed\n"

	.comm	_ath_pci_bus_ops,4,2            ; @ath_pci_bus_ops
l_.str.8:                               ; @.str.8
	.asciz	"Failed to initialize device\n"

l_.str.9:                               ; @.str.9
	.asciz	"%s mem=0x%lx, irq=%d\n"

	.no_dead_strip	_ath_pci_probe
.subsections_via_symbols
