	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	(%rdi), %r12
	movq	24(%rdi), %rax
	movl	(%rax), %r14d
	callq	*8(%rax)
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	20(%r13), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_netif_dbg
	movq	24(%r13), %rax
	movq	%r13, %rdi
	callq	*16(%rax)
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_pci_enable_device
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	20(%r13), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_netif_err
	jmp	LBB0_12
LBB0_2:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%r12, %rdi
	callq	_pci_set_master
	testl	%r14d, %r14d
	jns	LBB0_6
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ebx
	movl	%r14d, %eax
	sarl	%eax
	testl	%r14d, %r14d
	movl	%eax, %r14d
	jns	LBB0_5
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_dma_set_mask_and_coherent
	testl	%eax, %eax
	jne	LBB0_4
LBB0_6:
	movslq	%r14d, %r8
	movq	_probe@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	20(%r13), %edx
	leaq	L_.str.3(%rip), %rcx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_netif_dbg
	movq	(%r13), %rdi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_pci_resource_start
	movq	%rax, 8(%r13)
	leaq	L_.str.4(%rip), %rdx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_pci_request_region
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	(%r15), %esi
	movl	20(%r13), %edx
	leaq	L_.str.5(%rip), %rcx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_netif_err
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_10:
	negl	%ebx
	movq	$0, 8(%r13)
	jmp	LBB0_11
LBB0_8:
	movq	8(%r13), %rdi
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	callq	_ioremap_nocache
	movl	%eax, 16(%r13)
	movl	(%r15), %esi
	movl	20(%r13), %edx
	movq	8(%r13), %r8
	testl	%eax, %eax
	je	LBB0_9
## %bb.13:
	movl	%eax, (%rsp)
	leaq	L_.str.7(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	movl	%r14d, %r9d
	xorl	%eax, %eax
	callq	_netif_dbg
	jmp	LBB0_12
LBB0_5:
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	20(%r13), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_netif_err
LBB0_11:
	movq	(%r13), %rdi
	callq	_pci_disable_device
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str.6(%rip), %rcx
	movq	%r13, %rdi
	movl	%r14d, %r9d
	xorl	%eax, %eax
	callq	_netif_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r13), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_pci_release_region
	jmp	LBB0_10
	.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	"sfc"

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

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

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.7:                               ## @.str.7
	.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, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x0
	ldr	x22, [x0]
	ldr	x8, [x0, #24]
	ldr	w26, [x8]
	ldr	x8, [x8, #8]
	blr	x8
	mov	x20, x0
Lloh0:
	adrp	x25, _probe@GOTPAGE
Lloh1:
	ldr	x25, [x25, _probe@GOTPAGEOFF]
	ldr	w1, [x25]
	ldr	w2, [x19, #20]
Lloh2:
	adrp	x3, l_.str@PAGE
Lloh3:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_dbg
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #16]
	mov	x0, x19
	blr	x8
	mov	x21, x0
	mov	x0, x22
	bl	_pci_enable_device
	cbz	w0, LBB0_2
; %bb.1:
	mov	x23, x0
	ldr	w1, [x25]
	ldr	w2, [x19, #20]
Lloh4:
	adrp	x3, l_.str.1@PAGE
Lloh5:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netif_err
	b	LBB0_13
LBB0_2:
	mov	x0, x22
	bl	_pci_set_master
	tbz	w26, #31, LBB0_6
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	asr	w26, w24, #1
	tbz	w24, #31, LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x24, x26
	mov	x0, x22
	mov	x1, x26
	bl	_dma_set_mask_and_coherent
	cbnz	w0, LBB0_3
; %bb.5:
	mov	x26, x24
LBB0_6:
	sxtw	x8, w26
	ldr	w1, [x25]
	ldr	w2, [x19, #20]
	str	x8, [sp]
Lloh6:
	adrp	x3, l_.str.3@PAGE
Lloh7:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_netif_dbg
	ldr	x0, [x19]
	mov	x1, x21
	bl	_pci_resource_start
	str	x0, [x19, #8]
Lloh8:
	adrp	x2, l_.str.4@PAGE
Lloh9:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x22
	mov	x1, x21
	bl	_pci_request_region
	cbz	w0, LBB0_9
; %bb.7:
	ldr	w1, [x25]
	ldr	w2, [x19, #20]
Lloh10:
	adrp	x3, l_.str.5@PAGE
Lloh11:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_netif_err
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
LBB0_8:
	neg	w23, w20
	str	xzr, [x19, #8]
	b	LBB0_12
LBB0_9:
	ldr	x0, [x19, #8]
	mov	x1, x20
	bl	_ioremap_nocache
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [x19, #16]
	ldr	w1, [x25]
	ldr	w2, [x19, #20]
	ldr	x8, [x19, #8]
	cbz	w0, LBB0_14
; %bb.10:
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	stp	x20, x0, [sp, #8]
	str	x8, [sp]
Lloh15:
	adrp	x3, l_.str.7@PAGE
Lloh16:
	add	x3, x3, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_netif_dbg
	mov	w23, #0
	b	LBB0_13
LBB0_11:
	mov	x23, x0
	ldr	w1, [x25]
	ldr	w2, [x19, #20]
Lloh17:
	adrp	x3, l_.str.2@PAGE
Lloh18:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_netif_err
LBB0_12:
	ldr	x0, [x19]
	bl	_pci_disable_device
LBB0_13:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_14:
	stp	x8, x20, [sp]
Lloh19:
	adrp	x3, l_.str.6@PAGE
Lloh20:
	add	x3, x3, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_netif_err
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w20, [x8]
	ldr	x0, [x19]
	mov	x1, x21
	bl	_pci_release_region
	b	LBB0_8
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.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	"sfc"

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

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

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

	.no_dead_strip	_efx_init_io
.subsections_via_symbols
