	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qca8k_set_pad_ctrl
_qca8k_set_pad_ctrl:                    ## @qca8k_set_pad_ctrl
	.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, %r15
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	cmpl	$6, %esi
	jne	LBB0_15
## %bb.3:
	movq	_QCA8K_REG_PORT6_PAD_CTRL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movq	_QCA8K_REG_PORT0_PAD_CTRL@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %r14d
	cmpl	$128, %edx
	je	LBB0_11
## %bb.5:
	cmpl	$129, %edx
	je	LBB0_10
## %bb.6:
	cmpl	$130, %edx
	jne	LBB0_12
## %bb.7:
	movq	_QCA8K_PORT_PAD_RGMII_EN@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_15:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_13
LBB0_11:
	movq	_QCA8K_PORT_PAD_SGMII_EN@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	jmp	LBB0_9
LBB0_10:
	movq	_QCA8K_PORT_PAD_RGMII_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_QCA8K_MAX_DELAY@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_QCA8K_PORT_PAD_RGMII_TX_DELAY
	orl	%eax, %ebx
	movl	(%r12), %edi
	callq	_QCA8K_PORT_PAD_RGMII_RX_DELAY
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_qca8k_write
	movq	_QCA8K_REG_PORT5_PAD_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_QCA8K_PORT_PAD_RGMII_RX_DELAY_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
LBB0_9:
	callq	_qca8k_write
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_12:
	leaq	L_.str.1(%rip), %rdi
	movl	%edx, %esi
LBB0_13:
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QCA8K_REG_PORT0_PAD_CTRL,4,2   ## @QCA8K_REG_PORT0_PAD_CTRL
	.comm	_QCA8K_REG_PORT6_PAD_CTRL,4,2   ## @QCA8K_REG_PORT6_PAD_CTRL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't set PAD_CTRL on port %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_QCA8K_PORT_PAD_RGMII_EN,4,2    ## @QCA8K_PORT_PAD_RGMII_EN
	.comm	_QCA8K_MAX_DELAY,4,2            ## @QCA8K_MAX_DELAY
	.comm	_QCA8K_REG_PORT5_PAD_CTRL,4,2   ## @QCA8K_REG_PORT5_PAD_CTRL
	.comm	_QCA8K_PORT_PAD_RGMII_RX_DELAY_EN,4,2 ## @QCA8K_PORT_PAD_RGMII_RX_DELAY_EN
	.comm	_QCA8K_PORT_PAD_SGMII_EN,4,2    ## @QCA8K_PORT_PAD_SGMII_EN
L_.str.1:                               ## @.str.1
	.asciz	"xMII mode %d not supported\n"

	.no_dead_strip	_qca8k_set_pad_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qca8k_set_pad_ctrl
_qca8k_set_pad_ctrl:                    ; @qca8k_set_pad_ctrl
	.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
	cbz	w1, LBB0_3
; %bb.1:
	cmp	w1, #6
	b.ne	LBB0_8
; %bb.2:
Lloh0:
	adrp	x8, _QCA8K_REG_PORT6_PAD_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QCA8K_REG_PORT6_PAD_CTRL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _QCA8K_REG_PORT0_PAD_CTRL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _QCA8K_REG_PORT0_PAD_CTRL@GOTPAGEOFF]
LBB0_4:
	ldr	w20, [x8]
	cmp	w2, #128
	b.eq	LBB0_9
; %bb.5:
	cmp	w2, #129
	b.eq	LBB0_11
; %bb.6:
	cmp	w2, #130
	b.ne	LBB0_13
; %bb.7:
Lloh4:
	adrp	x8, _QCA8K_PORT_PAD_RGMII_EN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _QCA8K_PORT_PAD_RGMII_EN@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_14
LBB0_9:
Lloh8:
	adrp	x8, _QCA8K_PORT_PAD_SGMII_EN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _QCA8K_PORT_PAD_SGMII_EN@GOTPAGEOFF]
LBB0_10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	b	LBB0_12
LBB0_11:
Lloh10:
	adrp	x8, _QCA8K_PORT_PAD_RGMII_EN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _QCA8K_PORT_PAD_RGMII_EN@GOTPAGEOFF]
Lloh12:
	ldr	w21, [x8]
Lloh13:
	adrp	x22, _QCA8K_MAX_DELAY@GOTPAGE
Lloh14:
	ldr	x22, [x22, _QCA8K_MAX_DELAY@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_QCA8K_PORT_PAD_RGMII_TX_DELAY
	orr	w21, w0, w21
	ldr	w0, [x22]
	bl	_QCA8K_PORT_PAD_RGMII_RX_DELAY
	orr	w2, w21, w0
	mov	x0, x19
	mov	x1, x20
	bl	_qca8k_write
Lloh15:
	adrp	x8, _QCA8K_REG_PORT5_PAD_CTRL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _QCA8K_REG_PORT5_PAD_CTRL@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _QCA8K_PORT_PAD_RGMII_RX_DELAY_EN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _QCA8K_PORT_PAD_RGMII_RX_DELAY_EN@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
LBB0_12:
	bl	_qca8k_write
	mov	w0, #0
	b	LBB0_15
LBB0_13:
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x2
LBB0_14:
	bl	_pr_err
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_QCA8K_REG_PORT0_PAD_CTRL,4,2   ; @QCA8K_REG_PORT0_PAD_CTRL
	.comm	_QCA8K_REG_PORT6_PAD_CTRL,4,2   ; @QCA8K_REG_PORT6_PAD_CTRL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't set PAD_CTRL on port %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_QCA8K_PORT_PAD_RGMII_EN,4,2    ; @QCA8K_PORT_PAD_RGMII_EN
	.comm	_QCA8K_MAX_DELAY,4,2            ; @QCA8K_MAX_DELAY
	.comm	_QCA8K_REG_PORT5_PAD_CTRL,4,2   ; @QCA8K_REG_PORT5_PAD_CTRL
	.comm	_QCA8K_PORT_PAD_RGMII_RX_DELAY_EN,4,2 ; @QCA8K_PORT_PAD_RGMII_RX_DELAY_EN
	.comm	_QCA8K_PORT_PAD_SGMII_EN,4,2    ; @QCA8K_PORT_PAD_SGMII_EN
l_.str.1:                               ; @.str.1
	.asciz	"xMII mode %d not supported\n"

	.no_dead_strip	_qca8k_set_pad_ctrl
.subsections_via_symbols
