	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jmb38x_ms_pmos
_jmb38x_ms_pmos:                        ## @jmb38x_ms_pmos
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_PCI_PMOS0_CONTROL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-25(%rbp), %rdx
	callq	_pci_read_config_byte
	movq	_PMOS0_ACTIVE_BITS@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	orb	-25(%rbp), %al
	jmp	LBB0_3
LBB0_2:
	notb	%al
	andb	-25(%rbp), %al
LBB0_3:
	movb	%al, -25(%rbp)
	movl	(%r15), %esi
	movzbl	%al, %edx
	movq	%rbx, %rdi
	callq	_pci_write_config_byte
	movzbl	-25(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_pci_resource_flags
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	_PCI_PMOS1_CONTROL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-25(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pci_read_config_byte
	movq	_PMOS1_ACTIVE_BITS@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.5:
	orb	-25(%rbp), %al
	jmp	LBB0_7
LBB0_6:
	notb	%al
	andb	-25(%rbp), %al
LBB0_7:
	movb	%al, -25(%rbp)
	movl	(%r15), %esi
	movzbl	%al, %edx
	movq	%rbx, %rdi
	callq	_pci_write_config_byte
	movzbl	-25(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_8:
	movq	_PCI_CLOCK_CTL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-25(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pci_read_config_byte
	movl	(%r14), %esi
	movzbl	-25(%rbp), %edx
	andl	$-16, %edx
	movq	%rbx, %rdi
	callq	_pci_write_config_byte
	movl	(%r14), %esi
	movzbl	-25(%rbp), %edx
	orl	$1, %edx
	movq	%rbx, %rdi
	callq	_pci_write_config_byte
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_PMOS0_CONTROL,4,2          ## @PCI_PMOS0_CONTROL
	.comm	_PMOS0_ACTIVE_BITS,1,0          ## @PMOS0_ACTIVE_BITS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"JMB38x: set PMOS0 val 0x%x\n"

	.comm	_PCI_PMOS1_CONTROL,4,2          ## @PCI_PMOS1_CONTROL
	.comm	_PMOS1_ACTIVE_BITS,1,0          ## @PMOS1_ACTIVE_BITS
L_.str.1:                               ## @.str.1
	.asciz	"JMB38x: set PMOS1 val 0x%x\n"

	.comm	_PCI_CLOCK_CTL,4,2              ## @PCI_CLOCK_CTL
L_.str.2:                               ## @.str.2
	.asciz	"Clock Control by PCI config is disabled!\n"

	.no_dead_strip	_jmb38x_ms_pmos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jmb38x_ms_pmos
_jmb38x_ms_pmos:                        ; @jmb38x_ms_pmos
	.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
Lloh0:
	adrp	x21, _PCI_PMOS0_CONTROL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PCI_PMOS0_CONTROL@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #15
	bl	_pci_read_config_byte
Lloh2:
	adrp	x8, _PMOS0_ACTIVE_BITS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PMOS0_ACTIVE_BITS@GOTPAGEOFF]
	ldrb	w8, [x8]
	cbz	w20, LBB0_2
; %bb.1:
	ldrb	w9, [sp, #15]
	orr	w8, w9, w8
	b	LBB0_3
LBB0_2:
	ldrb	w9, [sp, #15]
	bic	w8, w9, w8
LBB0_3:
	strb	w8, [sp, #15]
	ldr	w1, [x21]
	and	w2, w8, #0xff
	mov	x0, x19
	bl	_pci_write_config_byte
	ldrb	w8, [sp, #15]
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	x0, x19
	mov	w1, #1
	bl	_pci_resource_flags
	cbz	x0, LBB0_8
; %bb.4:
Lloh6:
	adrp	x21, _PCI_PMOS1_CONTROL@GOTPAGE
Lloh7:
	ldr	x21, [x21, _PCI_PMOS1_CONTROL@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #15
	mov	x0, x19
	bl	_pci_read_config_byte
Lloh8:
	adrp	x8, _PMOS1_ACTIVE_BITS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PMOS1_ACTIVE_BITS@GOTPAGEOFF]
	ldrb	w8, [x8]
	cbz	w20, LBB0_6
; %bb.5:
	ldrb	w9, [sp, #15]
	orr	w8, w9, w8
	b	LBB0_7
LBB0_6:
	ldrb	w9, [sp, #15]
	bic	w8, w9, w8
LBB0_7:
	strb	w8, [sp, #15]
	ldr	w1, [x21]
	and	w2, w8, #0xff
	mov	x0, x19
	bl	_pci_write_config_byte
	ldrb	w8, [sp, #15]
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_8:
Lloh12:
	adrp	x20, _PCI_CLOCK_CTL@GOTPAGE
Lloh13:
	ldr	x20, [x20, _PCI_CLOCK_CTL@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #15
	mov	x0, x19
	bl	_pci_read_config_byte
	ldr	w1, [x20]
	ldrb	w8, [sp, #15]
	and	w2, w8, #0xf0
	mov	x0, x19
	bl	_pci_write_config_byte
	ldr	w1, [x20]
	ldrb	w8, [sp, #15]
	orr	w2, w8, #0x1
	mov	x0, x19
	bl	_pci_write_config_byte
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	w0, #0
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_PMOS0_CONTROL,4,2          ; @PCI_PMOS0_CONTROL
	.comm	_PMOS0_ACTIVE_BITS,1,0          ; @PMOS0_ACTIVE_BITS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"JMB38x: set PMOS0 val 0x%x\n"

	.comm	_PCI_PMOS1_CONTROL,4,2          ; @PCI_PMOS1_CONTROL
	.comm	_PMOS1_ACTIVE_BITS,1,0          ; @PMOS1_ACTIVE_BITS
l_.str.1:                               ; @.str.1
	.asciz	"JMB38x: set PMOS1 val 0x%x\n"

	.comm	_PCI_CLOCK_CTL,4,2              ; @PCI_CLOCK_CTL
l_.str.2:                               ; @.str.2
	.asciz	"Clock Control by PCI config is disabled!\n"

	.no_dead_strip	_jmb38x_ms_pmos
.subsections_via_symbols
