	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function macb_probe
_macb_probe:                            ## @macb_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	$392, %rsp                      ## imm = 0x188
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_pcim_enable_device
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_pci_set_master
	leaq	-240(%rbp), %r14
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
                                        ## kill: def $eax killed $eax def $rax
	shll	$5, %eax
	leal	(%rax,%rax,2), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pci_resource_start
	leaq	-160(%rbp), %r12
	movl	%eax, -160(%rbp)
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pci_resource_end
	movl	%eax, -152(%rbp)
	movq	_PCI_DRIVER_NAME@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	%rax, -184(%rbp)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -156(%rbp)
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pci_irq_vector
	movl	%eax, -64(%rbp)
	movq	(%rbx), %rax
	movq	%rax, -88(%rbp)
	movq	_IORESOURCE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	leaq	8(%r15), %r13
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movq	%r12, %rdx
	callq	_dev_info
	leaq	-432(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$96, %edx
	callq	_memset
	movq	_GEM_PCLK_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_clk_register_fixed_rate
	movq	%rax, -424(%rbp)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	-424(%rbp), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_1:
	movl	%eax, %ebx
	addq	$8, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_9
LBB0_4:
	movq	_GEM_HCLK_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_clk_register_fixed_rate
	movq	%rax, -416(%rbp)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	-416(%rbp), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_6:
	leaq	-336(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$96, %edx
	callq	_memset
	movq	%r13, -264(%rbp)
	movl	8(%r15), %eax
	movl	%eax, -272(%rbp)
	movq	_PLAT_DRIVER_NAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -280(%rbp)
	movl	4(%r15), %eax
	movl	%eax, -288(%rbp)
	movq	%r14, -296(%rbp)
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, -336(%rbp)
	movq	%r12, -304(%rbp)
	movl	$96, -332(%rbp)
	movl	(%r15), %eax
	movl	%eax, -312(%rbp)
	leaq	-336(%rbp), %rdi
	callq	_platform_device_register_full
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	-416(%rbp), %rdi
	callq	_clk_unregister
LBB0_8:
	movq	-424(%rbp), %rdi
	callq	_clk_unregister
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.10:
	movl	%ebx, %eax
	addq	$392, %rsp                      ## imm = 0x188
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_pci_set_drvdata
	jmp	LBB0_9
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enabling PCI device has failed: %d"

	.comm	_PCI_DRIVER_NAME,8,3            ## @PCI_DRIVER_NAME
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_IORESOURCE_IRQ,4,2             ## @IORESOURCE_IRQ
L_.str.1:                               ## @.str.1
	.asciz	"EMAC physical base addr: %pa\n"

L_.str.2:                               ## @.str.2
	.asciz	"pclk"

	.comm	_GEM_PCLK_RATE,4,2              ## @GEM_PCLK_RATE
L_.str.3:                               ## @.str.3
	.asciz	"hclk"

	.comm	_GEM_HCLK_RATE,4,2              ## @GEM_HCLK_RATE
	.comm	_PLAT_DRIVER_NAME,8,3           ## @PLAT_DRIVER_NAME
	.no_dead_strip	_macb_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function macb_probe
_macb_probe:                            ; @macb_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #448
	.cfi_def_cfa_offset 448
	stp	x22, x21, [sp, #400]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #416]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #432]            ; 16-byte Folded Spill
	add	x29, sp, #432
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	bl	_pcim_enable_device
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_pci_set_master
	add	x20, sp, #200
	add	x0, sp, #200
	bl	_ARRAY_SIZE
	add	w8, w0, w0, lsl #1
	lsl	w2, w8, #5
	add	x0, sp, #200
	mov	w1, #0
	bl	_memset
	mov	x0, x19
	mov	w1, #0
	bl	_pci_resource_start
	add	x21, x20, #80
	str	w0, [sp, #280]
	mov	x0, x19
	mov	w1, #0
	bl	_pci_resource_end
Lloh3:
	adrp	x20, _PCI_DRIVER_NAME@GOTPAGE
Lloh4:
	ldr	x20, [x20, _PCI_DRIVER_NAME@GOTPAGEOFF]
	ldr	x8, [x20]
	str	x8, [sp, #256]
Lloh5:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w0, [sp, #288]
	str	w8, [sp, #284]
	mov	x0, x19
	mov	w1, #0
	bl	_pci_irq_vector
	ldr	x8, [x20]
	str	x8, [sp, #352]
Lloh8:
	adrp	x8, _IORESOURCE_IRQ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IORESOURCE_IRQ@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w0, [sp, #376]
	str	w8, [sp, #380]
	add	x20, x19, #8
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_info
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #96
	bl	_memset
Lloh13:
	adrp	x8, _GEM_PCLK_RATE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GEM_PCLK_RATE@GOTPAGEOFF]
Lloh15:
	ldr	w4, [x8]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, #0
	mov	w3, #0
	bl	_clk_register_fixed_rate
	str	x0, [sp, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x0, [sp, #16]
	bl	_PTR_ERR
	mov	x20, x0
	b	LBB0_9
LBB0_3:
	mov	x20, x0
	add	x0, x19, #8
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	b	LBB0_9
LBB0_4:
Lloh20:
	adrp	x8, _GEM_HCLK_RATE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GEM_HCLK_RATE@GOTPAGEOFF]
Lloh22:
	ldr	w4, [x8]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x2, #0
	mov	w3, #0
	bl	_clk_register_fixed_rate
	str	x0, [sp, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x0, [sp, #24]
	bl	_PTR_ERR
	mov	x20, x0
	b	LBB0_8
LBB0_6:
	mov	w21, #96
	add	x0, sp, #104
	mov	w1, #0
	mov	w2, #96
	bl	_memset
	str	x20, [sp, #176]
Lloh25:
	adrp	x8, _PLAT_DRIVER_NAME@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PLAT_DRIVER_NAME@GOTPAGEOFF]
	ldp	w10, w9, [x19, #4]
	str	w9, [sp, #168]
Lloh27:
	ldr	x8, [x8]
	str	x8, [sp, #160]
	str	w10, [sp, #152]
	add	x8, sp, #200
	str	x8, [sp, #144]
	add	x0, sp, #200
	bl	_ARRAY_SIZE
	add	x8, sp, #8
	str	x8, [sp, #136]
	stp	w0, w21, [sp, #104]
	ldr	w8, [x19]
	str	w8, [sp, #128]
	add	x0, sp, #104
	bl	_platform_device_register_full
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.7:
	mov	x0, x20
	bl	_PTR_ERR
	mov	x20, x0
	ldr	x0, [sp, #24]
	bl	_clk_unregister
LBB0_8:
	ldr	x0, [sp, #16]
	bl	_clk_unregister
LBB0_9:
	ldur	x8, [x29, #-40]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.10:
	mov	x0, x20
	ldp	x29, x30, [sp, #432]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #416]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #400]            ; 16-byte Folded Reload
	add	sp, sp, #448
	ret
LBB0_11:
	mov	x0, x19
	mov	x1, x20
	bl	_pci_set_drvdata
	mov	w20, #0
	b	LBB0_9
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enabling PCI device has failed: %d"

	.comm	_PCI_DRIVER_NAME,8,3            ; @PCI_DRIVER_NAME
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_IORESOURCE_IRQ,4,2             ; @IORESOURCE_IRQ
l_.str.1:                               ; @.str.1
	.asciz	"EMAC physical base addr: %pa\n"

l_.str.2:                               ; @.str.2
	.asciz	"pclk"

	.comm	_GEM_PCLK_RATE,4,2              ; @GEM_PCLK_RATE
l_.str.3:                               ; @.str.3
	.asciz	"hclk"

	.comm	_GEM_HCLK_RATE,4,2              ; @GEM_HCLK_RATE
	.comm	_PLAT_DRIVER_NAME,8,3           ; @PLAT_DRIVER_NAME
	.no_dead_strip	_macb_probe
.subsections_via_symbols
