	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cardu_pciregs_init
_cardu_pciregs_init:                    ## @cardu_pciregs_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	$28, %esi
	movl	$268435456, %edx                ## imm = 0x10000000
	callq	_pci_write_config_dword
	movq	%rbx, %rdi
	movl	$32, %esi
	movl	$402649088, %edx                ## imm = 0x17FFF000
	callq	_pci_write_config_dword
	movq	%rbx, %rdi
	movl	$44, %esi
	xorl	%edx, %edx
	callq	_pci_write_config_dword
	movq	%rbx, %rdi
	movl	$48, %esi
	movl	$65532, %edx                    ## imm = 0xFFFC
	callq	_pci_write_config_dword
	movq	_BRGCNT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pci_read_config_word
	movq	_IREQ_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	-24(%rbp), %edx
	movl	%edx, -24(%rbp)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_pci_write_config_word
	movq	_SYSCNT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pci_read_config_dword
	movq	_BAD_VCC_REQ_DISB@GOTPCREL(%rip), %rax
	movq	_PCPCI_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_CH_ASSIGN_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_SUB_ID_WR_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_PCI_CLK_RIN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	notl	%edx
	andl	-28(%rbp), %edx
	movq	_CH_ASSIGN_NODMA@GOTPCREL(%rip), %rax
	movq	_ASYN_INT_MODE@GOTPCREL(%rip), %rcx
	orl	(%rax), %edx
	orl	(%rcx), %edx
	movl	%edx, -28(%rbp)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_pci_write_config_dword
	movq	_DEVCNT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pci_read_config_byte
	movq	_ZOOM_VIDEO_EN@GOTPCREL(%rip), %rax
	movq	_SR_PCI_INT_SEL_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_PCI_INT_MODE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_IRQ_MODE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	notl	%edx
	andl	-20(%rbp), %edx
	movq	_SR_PCI_INT_SEL_NONE@GOTPCREL(%rip), %rax
	movq	_IFG@GOTPCREL(%rip), %rcx
	orl	(%rax), %edx
	orl	(%rcx), %edx
	movl	%edx, -20(%rbp)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_pci_write_config_byte
	movq	_CHIPCNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_S_PREF_DISB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_pci_write_config_byte
	movq	_SERRDIS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_pci_write_config_byte
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRGCNT,4,2                     ## @BRGCNT
	.comm	_IREQ_INT,4,2                   ## @IREQ_INT
	.comm	_SYSCNT,4,2                     ## @SYSCNT
	.comm	_BAD_VCC_REQ_DISB,4,2           ## @BAD_VCC_REQ_DISB
	.comm	_PCPCI_EN,4,2                   ## @PCPCI_EN
	.comm	_CH_ASSIGN_MASK,4,2             ## @CH_ASSIGN_MASK
	.comm	_SUB_ID_WR_EN,4,2               ## @SUB_ID_WR_EN
	.comm	_PCI_CLK_RIN,4,2                ## @PCI_CLK_RIN
	.comm	_CH_ASSIGN_NODMA,4,2            ## @CH_ASSIGN_NODMA
	.comm	_ASYN_INT_MODE,4,2              ## @ASYN_INT_MODE
	.comm	_DEVCNT,4,2                     ## @DEVCNT
	.comm	_ZOOM_VIDEO_EN,4,2              ## @ZOOM_VIDEO_EN
	.comm	_SR_PCI_INT_SEL_MASK,4,2        ## @SR_PCI_INT_SEL_MASK
	.comm	_PCI_INT_MODE,4,2               ## @PCI_INT_MODE
	.comm	_IRQ_MODE,4,2                   ## @IRQ_MODE
	.comm	_SR_PCI_INT_SEL_NONE,4,2        ## @SR_PCI_INT_SEL_NONE
	.comm	_IFG,4,2                        ## @IFG
	.comm	_CHIPCNT,4,2                    ## @CHIPCNT
	.comm	_S_PREF_DISB,4,2                ## @S_PREF_DISB
	.comm	_SERRDIS,4,2                    ## @SERRDIS
	.no_dead_strip	_cardu_pciregs_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cardu_pciregs_init
_cardu_pciregs_init:                    ; @cardu_pciregs_init
	.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
	mov	x19, x0
	mov	w1, #28
	mov	w2, #268435456
	bl	_pci_write_config_dword
	mov	x0, x19
	mov	w1, #32
	mov	w2, #61440
	movk	w2, #6143, lsl #16
	bl	_pci_write_config_dword
	mov	x0, x19
	mov	w1, #44
	mov	w2, #0
	bl	_pci_write_config_dword
	mov	x0, x19
	mov	w1, #48
	mov	w2, #65532
	bl	_pci_write_config_dword
Lloh0:
	adrp	x20, _BRGCNT@GOTPAGE
Lloh1:
	ldr	x20, [x20, _BRGCNT@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #8
	mov	x0, x19
	bl	_pci_read_config_word
Lloh2:
	adrp	x8, _IREQ_INT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IREQ_INT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [sp, #8]
	bic	w2, w9, w8
	str	w2, [sp, #8]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_pci_write_config_word
Lloh5:
	adrp	x20, _SYSCNT@GOTPAGE
Lloh6:
	ldr	x20, [x20, _SYSCNT@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_pci_read_config_dword
Lloh7:
	adrp	x8, _BAD_VCC_REQ_DISB@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BAD_VCC_REQ_DISB@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _PCPCI_EN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PCPCI_EN@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh13:
	adrp	x9, _CH_ASSIGN_MASK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CH_ASSIGN_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh16:
	adrp	x9, _SUB_ID_WR_EN@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SUB_ID_WR_EN@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh19:
	adrp	x9, _PCI_CLK_RIN@GOTPAGE
Lloh20:
	ldr	x9, [x9, _PCI_CLK_RIN@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
Lloh22:
	adrp	x9, _CH_ASSIGN_NODMA@GOTPAGE
Lloh23:
	ldr	x9, [x9, _CH_ASSIGN_NODMA@GOTPAGEOFF]
Lloh24:
	adrp	x10, _ASYN_INT_MODE@GOTPAGE
Lloh25:
	ldr	x10, [x10, _ASYN_INT_MODE@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
Lloh27:
	ldr	w10, [x10]
	orr	w8, w9, w8
	orr	w2, w8, w10
	str	w2, [sp, #12]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_pci_write_config_dword
Lloh28:
	adrp	x20, _DEVCNT@GOTPAGE
Lloh29:
	ldr	x20, [x20, _DEVCNT@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #4
	mov	x0, x19
	bl	_pci_read_config_byte
Lloh30:
	adrp	x8, _ZOOM_VIDEO_EN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ZOOM_VIDEO_EN@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _SR_PCI_INT_SEL_MASK@GOTPAGE
Lloh34:
	ldr	x9, [x9, _SR_PCI_INT_SEL_MASK@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh36:
	adrp	x9, _PCI_INT_MODE@GOTPAGE
Lloh37:
	ldr	x9, [x9, _PCI_INT_MODE@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh39:
	adrp	x9, _IRQ_MODE@GOTPAGE
Lloh40:
	ldr	x9, [x9, _IRQ_MODE@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [sp, #4]
	bic	w8, w9, w8
Lloh42:
	adrp	x9, _SR_PCI_INT_SEL_NONE@GOTPAGE
Lloh43:
	ldr	x9, [x9, _SR_PCI_INT_SEL_NONE@GOTPAGEOFF]
Lloh44:
	adrp	x10, _IFG@GOTPAGE
Lloh45:
	ldr	x10, [x10, _IFG@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
Lloh47:
	ldr	w10, [x10]
	orr	w8, w9, w8
	orr	w2, w8, w10
	str	w2, [sp, #4]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_pci_write_config_byte
Lloh48:
	adrp	x8, _CHIPCNT@GOTPAGE
Lloh49:
	ldr	x8, [x8, _CHIPCNT@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
Lloh51:
	adrp	x8, _S_PREF_DISB@GOTPAGE
Lloh52:
	ldr	x8, [x8, _S_PREF_DISB@GOTPAGEOFF]
Lloh53:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_pci_write_config_byte
Lloh54:
	adrp	x8, _SERRDIS@GOTPAGE
Lloh55:
	ldr	x8, [x8, _SERRDIS@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_pci_write_config_byte
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh46
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh26
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BRGCNT,4,2                     ; @BRGCNT
	.comm	_IREQ_INT,4,2                   ; @IREQ_INT
	.comm	_SYSCNT,4,2                     ; @SYSCNT
	.comm	_BAD_VCC_REQ_DISB,4,2           ; @BAD_VCC_REQ_DISB
	.comm	_PCPCI_EN,4,2                   ; @PCPCI_EN
	.comm	_CH_ASSIGN_MASK,4,2             ; @CH_ASSIGN_MASK
	.comm	_SUB_ID_WR_EN,4,2               ; @SUB_ID_WR_EN
	.comm	_PCI_CLK_RIN,4,2                ; @PCI_CLK_RIN
	.comm	_CH_ASSIGN_NODMA,4,2            ; @CH_ASSIGN_NODMA
	.comm	_ASYN_INT_MODE,4,2              ; @ASYN_INT_MODE
	.comm	_DEVCNT,4,2                     ; @DEVCNT
	.comm	_ZOOM_VIDEO_EN,4,2              ; @ZOOM_VIDEO_EN
	.comm	_SR_PCI_INT_SEL_MASK,4,2        ; @SR_PCI_INT_SEL_MASK
	.comm	_PCI_INT_MODE,4,2               ; @PCI_INT_MODE
	.comm	_IRQ_MODE,4,2                   ; @IRQ_MODE
	.comm	_SR_PCI_INT_SEL_NONE,4,2        ; @SR_PCI_INT_SEL_NONE
	.comm	_IFG,4,2                        ; @IFG
	.comm	_CHIPCNT,4,2                    ; @CHIPCNT
	.comm	_S_PREF_DISB,4,2                ; @S_PREF_DISB
	.comm	_SERRDIS,4,2                    ; @SERRDIS
	.no_dead_strip	_cardu_pciregs_init
.subsections_via_symbols
