	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sky2_set_ipg
_sky2_set_ipg:                          ## @sky2_set_ipg
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	8(%rdi), %esi
	movl	12(%rdi), %edi
	movq	_GM_SERIAL_MODE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	callq	_gma_read16
	movl	%eax, %ebx
	movq	_GM_SMOD_IPG_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	(%r14), %rax
	movq	_SPEED_100@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_1
## %bb.2:
	movq	_IPG_DATA_DEF_1000@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_IPG_DATA_DEF_10_100@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edi
	callq	_IPG_DATA_VAL
	notl	%r12d
	andl	%r12d, %ebx
	orl	%eax, %ebx
	movl	8(%r14), %esi
	movl	12(%r14), %edi
	movl	(%r15), %edx
	movl	%ebx, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gma_write16                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GM_SERIAL_MODE,4,2             ## @GM_SERIAL_MODE
	.comm	_GM_SMOD_IPG_MSK,4,2            ## @GM_SMOD_IPG_MSK
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_IPG_DATA_DEF_1000,4,2          ## @IPG_DATA_DEF_1000
	.comm	_IPG_DATA_DEF_10_100,4,2        ## @IPG_DATA_DEF_10_100
	.no_dead_strip	_sky2_set_ipg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sky2_set_ipg
_sky2_set_ipg:                          ; @sky2_set_ipg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	w0, [x0, #12]
	ldr	w1, [x19, #8]
Lloh0:
	adrp	x21, _GM_SERIAL_MODE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GM_SERIAL_MODE@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_gma_read16
	mov	x20, x0
Lloh2:
	adrp	x8, _GM_SMOD_IPG_MSK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GM_SMOD_IPG_MSK@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _SPEED_100@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SPEED_100@GOTPAGEOFF]
Lloh7:
	adrp	x10, _IPG_DATA_DEF_1000@GOTPAGE
Lloh8:
	ldr	x10, [x10, _IPG_DATA_DEF_1000@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
Lloh10:
	adrp	x11, _IPG_DATA_DEF_10_100@GOTPAGE
Lloh11:
	ldr	x11, [x11, _IPG_DATA_DEF_10_100@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, gt
	ldr	w0, [x8]
	bl	_IPG_DATA_VAL
	bic	w8, w20, w22
	orr	w3, w0, w8
	ldp	w1, w0, [x19, #8]
	ldr	w2, [x21]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_gma_write16
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GM_SERIAL_MODE,4,2             ; @GM_SERIAL_MODE
	.comm	_GM_SMOD_IPG_MSK,4,2            ; @GM_SMOD_IPG_MSK
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_IPG_DATA_DEF_1000,4,2          ; @IPG_DATA_DEF_1000
	.comm	_IPG_DATA_DEF_10_100,4,2        ; @IPG_DATA_DEF_10_100
	.no_dead_strip	_sky2_set_ipg
.subsections_via_symbols
