	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_init_io
_efx_init_io:                           ## @efx_init_io
	.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, %r14
	movq	(%rdi), %r15
	movq	24(%rdi), %rax
	movl	(%rax), %ebx
	movq	_probe@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	32(%rdi), %edx
	leaq	L_.str(%rip), %rcx
	xorl	%eax, %eax
	callq	_netif_dbg
	movq	%r15, %rdi
	callq	_pci_enable_device
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r12d
	movl	(%r13), %esi
	movl	32(%r14), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netif_err
	jmp	LBB0_19
LBB0_2:
	movq	%r15, %rdi
	callq	_pci_set_master
	testl	%ebx, %ebx
	js	LBB0_6
LBB0_3:
	movl	%ebx, %eax
LBB0_4:
	movslq	%eax, %rbx
	movl	(%r13), %esi
	movl	32(%r14), %edx
	leaq	L_.str.3(%rip), %rcx
	movq	%r14, %rdi
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_netif_dbg
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_dma_set_coherent_mask
	testl	%eax, %eax
	je	LBB0_13
## %bb.5:
	movl	%eax, %r12d
	movl	(%r13), %esi
	movl	32(%r14), %edx
	leaq	L_.str.4(%rip), %rcx
	jmp	LBB0_12
LBB0_6:
	xorl	%r12d, %r12d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	%ebx, %eax
	sarl	%eax
	testl	%ebx, %ebx
	movl	%eax, %ebx
	jns	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_dma_supported
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_dma_set_mask
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_3
LBB0_13:
	movq	(%r14), %rdi
	movq	_EFX_MEM_BAR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_pci_resource_start
	movq	%rax, 8(%r14)
	movl	(%rbx), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%r15, %rdi
	callq	_pci_request_region
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	(%r13), %esi
	movl	32(%r14), %edx
	leaq	L_.str.6(%rip), %rcx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netif_err
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_17:
	negl	%r12d
	movq	$0, 8(%r14)
	jmp	LBB0_18
LBB0_10:
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.11:
	movl	(%r13), %esi
	movl	32(%r14), %edx
	leaq	L_.str.2(%rip), %rcx
LBB0_12:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netif_err
LBB0_18:
	movq	(%r14), %rdi
	callq	_pci_disable_device
LBB0_19:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	8(%r14), %rdi
	movq	24(%r14), %rax
	movl	4(%rax), %esi
	callq	_ioremap_nocache
	movl	%eax, 16(%r14)
	movl	(%r13), %esi
	movl	32(%r14), %edx
	movq	8(%r14), %r8
	movq	24(%r14), %rcx
	movl	4(%rcx), %r9d
	testl	%eax, %eax
	je	LBB0_16
## %bb.20:
	movl	%eax, (%rsp)
	leaq	L_.str.8(%rip), %rcx
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netif_dbg
	jmp	LBB0_19
LBB0_16:
	leaq	L_.str.7(%rip), %rcx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netif_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	(%r14), %rdi
	movl	(%rbx), %esi
	callq	_pci_release_region
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_probe,4,2                      ## @probe
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"initialising I/O\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to enable PCI device\n"

L_.str.2:                               ## @.str.2
	.asciz	"could not find a suitable DMA mask\n"

L_.str.3:                               ## @.str.3
	.asciz	"using DMA mask %llx\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to set consistent DMA mask\n"

	.comm	_EFX_MEM_BAR,4,2                ## @EFX_MEM_BAR
L_.str.5:                               ## @.str.5
	.asciz	"sfc"

L_.str.6:                               ## @.str.6
	.asciz	"request for memory BAR failed\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.7:                               ## @.str.7
	.asciz	"could not map memory BAR at %llx+%x\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.8:                               ## @.str.8
	.asciz	"memory BAR at %llx+%x (virtual %p)\n"

	.no_dead_strip	_efx_init_io
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_init_io
_efx_init_io:                           ; @efx_init_io
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	ldr	x20, [x0]
	ldr	x8, [x0, #24]
	ldr	w22, [x8]
Lloh0:
	adrp	x24, _probe@GOTPAGE
Lloh1:
	ldr	x24, [x24, _probe@GOTPAGEOFF]
	ldr	w1, [x24]
	ldr	w2, [x0, #32]
Lloh2:
	adrp	x3, l_.str@PAGE
Lloh3:
	add	x3, x3, l_.str@PAGEOFF
	bl	_netif_dbg
	mov	x0, x20
	bl	_pci_enable_device
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	w1, [x24]
	ldr	w2, [x19, #32]
Lloh4:
	adrp	x3, l_.str.1@PAGE
Lloh5:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netif_err
	b	LBB0_17
LBB0_2:
	mov	x0, x20
	bl	_pci_set_master
	tbnz	w22, #31, LBB0_5
LBB0_3:
	sxtw	x8, w22
	ldr	w1, [x24]
	ldr	w2, [x19, #32]
	str	x8, [sp]
Lloh6:
	adrp	x3, l_.str.3@PAGE
Lloh7:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_netif_dbg
	mov	x0, x20
	mov	x1, x22
	bl	_dma_set_coherent_mask
	cbz	w0, LBB0_10
; %bb.4:
	mov	x21, x0
	ldr	w1, [x24]
	ldr	w2, [x19, #32]
Lloh8:
	adrp	x3, l_.str.4@PAGE
Lloh9:
	add	x3, x3, l_.str.4@PAGEOFF
	b	LBB0_15
LBB0_5:
	mov	w21, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	asr	w22, w23, #1
	tbz	w23, #31, LBB0_13
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x23, x22
	mov	x0, x20
	mov	x1, x22
	bl	_dma_supported
	cbz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_dma_set_mask
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.9:
	mov	x22, x23
	b	LBB0_3
LBB0_10:
	ldr	x0, [x19]
Lloh10:
	adrp	x21, _EFX_MEM_BAR@GOTPAGE
Lloh11:
	ldr	x21, [x21, _EFX_MEM_BAR@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_pci_resource_start
	str	x0, [x19, #8]
	ldr	w1, [x21]
Lloh12:
	adrp	x2, l_.str.5@PAGE
Lloh13:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_pci_request_region
	cbz	w0, LBB0_18
; %bb.11:
	ldr	w1, [x24]
	ldr	w2, [x19, #32]
Lloh14:
	adrp	x3, l_.str.6@PAGE
Lloh15:
	add	x3, x3, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_netif_err
Lloh16:
	adrp	x8, _EIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh18:
	ldr	w20, [x8]
LBB0_12:
	neg	w21, w20
	str	xzr, [x19, #8]
	b	LBB0_16
LBB0_13:
	cbz	w21, LBB0_3
; %bb.14:
	ldr	w1, [x24]
	ldr	w2, [x19, #32]
Lloh19:
	adrp	x3, l_.str.2@PAGE
Lloh20:
	add	x3, x3, l_.str.2@PAGEOFF
LBB0_15:
	mov	x0, x19
	bl	_netif_err
LBB0_16:
	ldr	x0, [x19]
	bl	_pci_disable_device
LBB0_17:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_18:
	ldr	x0, [x19, #8]
	ldr	x8, [x19, #24]
	ldr	w1, [x8, #4]
	bl	_ioremap_nocache
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [x19, #16]
	ldr	w1, [x24]
	ldr	w2, [x19, #32]
	ldr	x8, [x19, #8]
	ldr	x9, [x19, #24]
	ldr	w9, [x9, #4]
	cbz	w0, LBB0_20
; %bb.19:
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	stp	x9, x0, [sp, #8]
	str	x8, [sp]
Lloh21:
	adrp	x3, l_.str.8@PAGE
Lloh22:
	add	x3, x3, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_netif_dbg
	mov	w21, #0
	b	LBB0_17
LBB0_20:
	stp	x8, x9, [sp]
Lloh23:
	adrp	x3, l_.str.7@PAGE
Lloh24:
	add	x3, x3, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_netif_err
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w20, [x8]
	ldr	x0, [x19]
	ldr	w1, [x21]
	bl	_pci_release_region
	b	LBB0_12
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_probe,4,2                      ; @probe
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"initialising I/O\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to enable PCI device\n"

l_.str.2:                               ; @.str.2
	.asciz	"could not find a suitable DMA mask\n"

l_.str.3:                               ; @.str.3
	.asciz	"using DMA mask %llx\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to set consistent DMA mask\n"

	.comm	_EFX_MEM_BAR,4,2                ; @EFX_MEM_BAR
l_.str.5:                               ; @.str.5
	.asciz	"sfc"

l_.str.6:                               ; @.str.6
	.asciz	"request for memory BAR failed\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.7:                               ; @.str.7
	.asciz	"could not map memory BAR at %llx+%x\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.8:                               ; @.str.8
	.asciz	"memory BAR at %llx+%x (virtual %p)\n"

	.no_dead_strip	_efx_init_io
.subsections_via_symbols
