	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xlgmac_probe
_xlgmac_probe:                          ## @xlgmac_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_pcim_enable_device
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_9
LBB0_1:
	movq	_PCI_STD_RESOURCE_END@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	js	LBB0_2
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_pci_resource_len
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	leal	1(%rbx), %r12d
	cmpl	(%r15), %ebx
	movl	%r12d, %ebx
	jl	LBB0_5
	jmp	LBB0_8
LBB0_2:
	xorl	%r12d, %r12d
	jmp	LBB0_8
LBB0_6:
	movl	%ebx, %edi
	callq	_BIT
	movq	_XLGMAC_DRV_NAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_pcim_iomap_regions
	movl	%eax, %r15d
	movl	%ebx, %r12d
	testl	%eax, %eax
	jne	LBB0_9
LBB0_8:
	movq	%r14, %rdi
	callq	_pci_set_master
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	4(%r14), %eax
	movl	%eax, -36(%rbp)
	movq	%r14, %rdi
	callq	_pcim_iomap_table
	movl	%r12d, %ecx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -40(%rbp)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_xlgmac_drv_probe
	movl	%eax, %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERROR: failed to enable device\n"

	.comm	_PCI_STD_RESOURCE_END,4,2       ## @PCI_STD_RESOURCE_END
	.comm	_XLGMAC_DRV_NAME,4,2            ## @XLGMAC_DRV_NAME
	.no_dead_strip	_xlgmac_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xlgmac_probe
_xlgmac_probe:                          ; @xlgmac_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	bl	_pcim_enable_device
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_9
LBB0_2:
Lloh2:
	adrp	x21, _PCI_STD_RESOURCE_END@GOTPAGE
Lloh3:
	ldr	x21, [x21, _PCI_STD_RESOURCE_END@GOTPAGEOFF]
	ldr	w8, [x21]
	tbnz	w8, #31, LBB0_6
; %bb.3:
	mov	w20, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_pci_resource_len
	cbnz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w22, w20, #1
	ldr	w8, [x21]
	cmp	w20, w8
	mov	x20, x22
	b.lt	LBB0_4
	b	LBB0_8
LBB0_6:
	mov	w22, #0
	b	LBB0_8
LBB0_7:
	mov	x0, x20
	bl	_BIT
	mov	x1, x0
Lloh4:
	adrp	x8, _XLGMAC_DRV_NAME@GOTPAGE
Lloh5:
	ldr	x8, [x8, _XLGMAC_DRV_NAME@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_pcim_iomap_regions
	mov	x21, x0
	mov	x22, x20
	cbnz	w0, LBB0_9
LBB0_8:
	mov	x0, x19
	bl	_pci_set_master
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w8, [x19, #4]
	str	w8, [sp, #12]
	mov	x0, x19
	bl	_pcim_iomap_table
	ldr	w8, [x0, w22, uxtw #2]
	str	w8, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_xlgmac_drv_probe
	mov	x21, x0
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERROR: failed to enable device\n"

	.comm	_PCI_STD_RESOURCE_END,4,2       ; @PCI_STD_RESOURCE_END
	.comm	_XLGMAC_DRV_NAME,4,2            ; @XLGMAC_DRV_NAME
	.no_dead_strip	_xlgmac_probe
.subsections_via_symbols
