	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan743x_pci_init
_lan743x_pci_init:                      ## @lan743x_pci_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, (%rdi)
	movq	%rsi, %rdi
	callq	_pci_enable_device_mem
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %edx
	movl	(%r15), %r9d
	movl	4(%r15), %r8d
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_netif_info
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_pci_select_bars
	movq	%rax, -32(%rbp)
	xorl	%ebx, %ebx
	leaq	-32(%rbp), %rsi
	xorl	%edi, %edi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movq	-32(%rbp), %rsi
	movq	_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_pci_request_selected_regions
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
LBB0_4:
	movq	(%r14), %rdi
	callq	_pci_disable_device
	jmp	LBB0_5
LBB0_3:
	movq	%r15, %rdi
	callq	_pci_set_master
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_probe,4,2                      ## @probe
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCI: Vendor ID = 0x%04X, Device ID = 0x%04X\n"

	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_DRIVER_NAME,4,2                ## @DRIVER_NAME
	.no_dead_strip	_lan743x_pci_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan743x_pci_init
_lan743x_pci_init:                      ; @lan743x_pci_init
	.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	x20, x1
	mov	x19, x0
	str	x1, [x0]
	mov	x0, x1
	bl	_pci_enable_device_mem
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _probe@GOTPAGE
Lloh1:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x19, #8]
	ldp	w5, w4, [x20]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_info
Lloh5:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pci_select_bars
	str	x0, [sp, #8]
	add	x1, sp, #8
	mov	w0, #0
	bl	_test_bit
	cbz	w0, LBB0_4
; %bb.2:
	ldr	x1, [sp, #8]
Lloh8:
	adrp	x8, _DRIVER_NAME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DRIVER_NAME@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_pci_request_selected_regions
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_pci_set_master
	b	LBB0_6
LBB0_4:
	mov	w21, #0
LBB0_5:
	ldr	x0, [x19]
	bl	_pci_disable_device
LBB0_6:
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_probe,4,2                      ; @probe
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCI: Vendor ID = 0x%04X, Device ID = 0x%04X\n"

	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_DRIVER_NAME,4,2                ; @DRIVER_NAME
	.no_dead_strip	_lan743x_pci_init
.subsections_via_symbols
