	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zt5550_hc_init_one
_zt5550_hc_init_one:                    ## @zt5550_hc_init_one
	.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
	callq	_zt5550_hc_config
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_dbg
	movq	_zt5550_hpc@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_zt5550_hc_query_enum@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_zt5550_hpc_ops@GOTPCREL(%rip), %rax
	movl	%ecx, 12(%rax)
	movq	%rax, 16(%rbx)
	movq	_poll@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_2
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_info
	jmp	LBB0_4
LBB0_2:
	movq	_hc_dev@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %edx
	movl	%edx, 12(%rbx)
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 8(%rbx)
	movq	%rcx, (%rbx)
	movq	_zt5550_hc_enable_irq@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	_zt5550_hc_disable_irq@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_zt5550_hc_check_irq@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
LBB0_4:
	movq	_zt5550_hpc@GOTPCREL(%rip), %rdi
	callq	_cpci_hp_register_controller
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_13
LBB0_6:
	leaq	L_.str.3(%rip), %rdi
	callq	_dbg
	movq	_PCI_VENDOR_ID_DEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PCI_DEVICE_ID_DEC_21154@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_pci_get_device
	movq	_bus0_dev@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	(%rax), %ecx
	movq	_bus0@GOTPCREL(%rip), %r15
	movl	%ecx, (%r15)
	movq	%rax, %rdi
	callq	_pci_dev_put
	movl	(%r15), %edi
	movl	$10, %esi
	movl	$15, %edx
	callq	_cpci_hp_register_bus
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_12
LBB0_7:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str.5(%rip), %rdi
	callq	_dbg
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_cpci_hp_start
	testl	%eax, %eax
	je	LBB0_15
## %bb.11:
	movl	%eax, %r14d
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_err
	movl	(%r15), %edi
	callq	_cpci_hp_unregister_bus
	movl	%r14d, %ebx
LBB0_12:
	movq	_zt5550_hpc@GOTPCREL(%rip), %rdi
	callq	_cpci_hp_unregister_controller
LBB0_13:
	leaq	L_.str.8(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_err
	xorl	%eax, %eax
	callq	_zt5550_hc_cleanup
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	leaq	L_.str.7(%rip), %rdi
	callq	_dbg
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"returned from zt5550_hc_config"

	.comm	_zt5550_hpc,24,3                ## @zt5550_hpc
	.comm	_zt5550_hc_query_enum,4,2       ## @zt5550_hc_query_enum
	.comm	_zt5550_hpc_ops,16,2            ## @zt5550_hpc_ops
	.comm	_poll,4,2                       ## @poll
	.comm	_hc_dev,8,3                     ## @hc_dev
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_zt5550_hc_enable_irq,4,2       ## @zt5550_hc_enable_irq
	.comm	_zt5550_hc_disable_irq,4,2      ## @zt5550_hc_disable_irq
	.comm	_zt5550_hc_check_irq,4,2        ## @zt5550_hc_check_irq
L_.str.1:                               ## @.str.1
	.asciz	"using ENUM# polling mode"

L_.str.2:                               ## @.str.2
	.asciz	"could not register cPCI hotplug controller"

L_.str.3:                               ## @.str.3
	.asciz	"registered controller"

	.comm	_PCI_VENDOR_ID_DEC,4,2          ## @PCI_VENDOR_ID_DEC
	.comm	_PCI_DEVICE_ID_DEC_21154,4,2    ## @PCI_DEVICE_ID_DEC_21154
	.comm	_bus0_dev,8,3                   ## @bus0_dev
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_bus0,4,2                       ## @bus0
L_.str.4:                               ## @.str.4
	.asciz	"could not register cPCI hotplug bus"

L_.str.5:                               ## @.str.5
	.asciz	"registered bus"

L_.str.6:                               ## @.str.6
	.asciz	"could not started cPCI hotplug system"

L_.str.7:                               ## @.str.7
	.asciz	"started cpci hp system"

L_.str.8:                               ## @.str.8
	.asciz	"status = %d"

	.no_dead_strip	_zt5550_hc_init_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zt5550_hc_init_one
_zt5550_hc_init_one:                    ; @zt5550_hc_init_one
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_zt5550_hc_config
	mov	x19, x0
	cbnz	w0, LBB0_14
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg
Lloh2:
	adrp	x19, _zt5550_hpc@GOTPAGE
Lloh3:
	ldr	x19, [x19, _zt5550_hpc@GOTPAGEOFF]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh4:
	adrp	x9, _zt5550_hc_query_enum@GOTPAGE
Lloh5:
	ldr	x9, [x9, _zt5550_hc_query_enum@GOTPAGEOFF]
Lloh6:
	adrp	x8, _zt5550_hpc_ops@GOTPAGE
Lloh7:
	ldr	x8, [x8, _zt5550_hpc_ops@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	str	w9, [x8, #12]
	str	x8, [x19, #16]
Lloh9:
	adrp	x9, _poll@GOTPAGE
Lloh10:
	ldr	x9, [x9, _poll@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cbz	w9, LBB0_3
; %bb.2:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_info
	b	LBB0_4
LBB0_3:
Lloh14:
	adrp	x9, _hc_dev@GOTPAGE
Lloh15:
	ldr	x9, [x9, _hc_dev@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	ldr	w10, [x9]
Lloh17:
	adrp	x11, _IRQF_SHARED@GOTPAGE
Lloh18:
	ldr	x11, [x11, _IRQF_SHARED@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
	stp	w11, w10, [x19, #8]
	str	x9, [x19]
Lloh20:
	adrp	x9, _zt5550_hc_enable_irq@GOTPAGE
Lloh21:
	ldr	x9, [x9, _zt5550_hc_enable_irq@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	str	w9, [x8, #8]
Lloh23:
	adrp	x9, _zt5550_hc_disable_irq@GOTPAGE
Lloh24:
	ldr	x9, [x9, _zt5550_hc_disable_irq@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
Lloh26:
	adrp	x10, _zt5550_hc_check_irq@GOTPAGE
Lloh27:
	ldr	x10, [x10, _zt5550_hc_check_irq@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	stp	w10, w9, [x8]
LBB0_4:
Lloh29:
	adrp	x0, _zt5550_hpc@GOTPAGE
Lloh30:
	ldr	x0, [x0, _zt5550_hpc@GOTPAGEOFF]
	bl	_cpci_hp_register_controller
	cbz	w0, LBB0_6
; %bb.5:
	mov	x19, x0
Lloh31:
	adrp	x0, l_.str.2@PAGE
Lloh32:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_err
	b	LBB0_13
LBB0_6:
Lloh33:
	adrp	x0, l_.str.3@PAGE
Lloh34:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_dbg
Lloh35:
	adrp	x8, _PCI_VENDOR_ID_DEC@GOTPAGE
Lloh36:
	ldr	x8, [x8, _PCI_VENDOR_ID_DEC@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
Lloh38:
	adrp	x8, _PCI_DEVICE_ID_DEC_21154@GOTPAGE
Lloh39:
	ldr	x8, [x8, _PCI_DEVICE_ID_DEC_21154@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_pci_get_device
Lloh41:
	adrp	x8, _bus0_dev@GOTPAGE
Lloh42:
	ldr	x8, [x8, _bus0_dev@GOTPAGEOFF]
Lloh43:
	str	x0, [x8]
	cbz	x0, LBB0_9
; %bb.7:
	ldr	w8, [x0]
Lloh44:
	adrp	x20, _bus0@GOTPAGE
Lloh45:
	ldr	x20, [x20, _bus0@GOTPAGEOFF]
	str	w8, [x20]
	bl	_pci_dev_put
	ldr	w0, [x20]
	mov	w1, #10
	mov	w2, #15
	bl	_cpci_hp_register_bus
	cbz	w0, LBB0_10
; %bb.8:
	mov	x19, x0
Lloh46:
	adrp	x0, l_.str.4@PAGE
Lloh47:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_err
	b	LBB0_12
LBB0_9:
Lloh48:
	adrp	x8, _ENODEV@GOTPAGE
Lloh49:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_12
LBB0_10:
Lloh51:
	adrp	x0, l_.str.5@PAGE
Lloh52:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_dbg
	bl	_cpci_hp_start
	mov	x19, x0
	cbz	w0, LBB0_15
; %bb.11:
Lloh53:
	adrp	x0, l_.str.6@PAGE
Lloh54:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_err
	ldr	w0, [x20]
	bl	_cpci_hp_unregister_bus
LBB0_12:
Lloh55:
	adrp	x0, _zt5550_hpc@GOTPAGE
Lloh56:
	ldr	x0, [x0, _zt5550_hpc@GOTPAGEOFF]
	bl	_cpci_hp_unregister_controller
LBB0_13:
	str	x19, [sp]
Lloh57:
	adrp	x0, l_.str.8@PAGE
Lloh58:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_err
	bl	_zt5550_hc_cleanup
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_15:
Lloh59:
	adrp	x0, l_.str.7@PAGE
Lloh60:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_dbg
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh8
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotStr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"returned from zt5550_hc_config"

	.comm	_zt5550_hpc,24,3                ; @zt5550_hpc
	.comm	_zt5550_hc_query_enum,4,2       ; @zt5550_hc_query_enum
	.comm	_zt5550_hpc_ops,16,2            ; @zt5550_hpc_ops
	.comm	_poll,4,2                       ; @poll
	.comm	_hc_dev,8,3                     ; @hc_dev
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_zt5550_hc_enable_irq,4,2       ; @zt5550_hc_enable_irq
	.comm	_zt5550_hc_disable_irq,4,2      ; @zt5550_hc_disable_irq
	.comm	_zt5550_hc_check_irq,4,2        ; @zt5550_hc_check_irq
l_.str.1:                               ; @.str.1
	.asciz	"using ENUM# polling mode"

l_.str.2:                               ; @.str.2
	.asciz	"could not register cPCI hotplug controller"

l_.str.3:                               ; @.str.3
	.asciz	"registered controller"

	.comm	_PCI_VENDOR_ID_DEC,4,2          ; @PCI_VENDOR_ID_DEC
	.comm	_PCI_DEVICE_ID_DEC_21154,4,2    ; @PCI_DEVICE_ID_DEC_21154
	.comm	_bus0_dev,8,3                   ; @bus0_dev
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_bus0,4,2                       ; @bus0
l_.str.4:                               ; @.str.4
	.asciz	"could not register cPCI hotplug bus"

l_.str.5:                               ; @.str.5
	.asciz	"registered bus"

l_.str.6:                               ; @.str.6
	.asciz	"could not started cPCI hotplug system"

l_.str.7:                               ; @.str.7
	.asciz	"started cpci hp system"

l_.str.8:                               ; @.str.8
	.asciz	"status = %d"

	.no_dead_strip	_zt5550_hc_init_one
.subsections_via_symbols
