	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rzn1_set_hw_pin_func
_rzn1_set_hw_pin_func:                  ## @rzn1_set_hw_pin_func
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_RZN1_FUNC_MDIO0_HIGHZ@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jg	LBB0_8
## %bb.1:
	movq	_RZN1_FUNC_MDIO1_E1_SWITCH@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jl	LBB0_8
## %bb.2:
	movq	_RZN1_FUNC_MDIO1_HIGHZ@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpl	%ebx, (%rcx)
	setl	%sil
	movq	_RZN1_FUNC_MDIO0_SWITCH@GOTPCREL(%rip), %rdx
	cmpl	%ebx, (%rdx)
	jge	LBB0_3
## %bb.4:
	movq	_RZN1_FUNC_MDIO0_E1_SWITCH@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jge	LBB0_5
## %bb.6:
	movq	_RZN1_FUNC_MDIO1_SWITCH@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	movq	_RZN1_FUNC_ETH_MDIO@GOTPCREL(%rip), %rdx
	cmovlq	_RZN1_FUNC_ETH_MDIO_E1@GOTPCREL(%rip), %rdx
	cmovlq	_RZN1_FUNC_MDIO1_E1_HIGHZ@GOTPCREL(%rip), %rcx
	movq	%rcx, %rax
	jmp	LBB0_7
LBB0_3:
	movq	_RZN1_FUNC_ETH_MDIO@GOTPCREL(%rip), %rdx
	jmp	LBB0_7
LBB0_5:
	movq	_RZN1_FUNC_MDIO0_E1_HIGHZ@GOTPCREL(%rip), %rax
	movq	_RZN1_FUNC_ETH_MDIO_E1@GOTPCREL(%rip), %rdx
LBB0_7:
	subl	(%rax), %ebx
	movl	(%rdx), %r12d
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_rzn1_pinctrl_mdio_select
	movl	%r12d, %ebx
LBB0_8:
	movq	8(%r14), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	cmpl	%r15d, %eax
	jbe	LBB0_10
## %bb.9:
	movq	_RZN1_FUNC_MDIO0_HIGHZ@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_10
## %bb.11:
	movq	8(%r14), %rax
	movl	%r15d, %r12d
	shlq	$2, %r12
	movq	(%rax), %rdi
	addq	%r12, %rdi
	callq	_readl
	movl	%eax, %r13d
	movq	(%r14), %rax
	movq	(%rax), %rdi
	addq	%r12, %rdi
	callq	_readl
	movl	%r15d, %edx
	movl	%eax, %r15d
	movl	16(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %ecx
	callq	_dev_dbg
	movl	%r15d, %r8d
	movl	%r13d, %edi
	movq	_RZN1_L1_FUNC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_RZN1_L1_FUNCTION@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	notl	%eax
	andl	%r13d, %eax
	movq	_RZN1_FUNC_L2_OFFSET@GOTPCREL(%rip), %rsi
	movl	%ebx, %edx
	movl	%r15d, %r13d
	subl	(%rsi), %edx
	jl	LBB0_13
## %bb.12:
	movq	_RZN1_L1_FUNCTION_L2@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ebx
	movl	%edx, %r13d
LBB0_13:
	shll	%cl, %ebx
	orl	%eax, %ebx
	xorl	%r15d, %r15d
	cmpl	%edi, %ebx
	jne	LBB0_15
## %bb.14:
	cmpl	%r8d, %r13d
	je	LBB0_16
LBB0_15:
	movq	8(%r14), %rax
	movq	(%rax), %rsi
	addq	%r12, %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	(%r14), %rax
	addq	(%rax), %r12
	movl	%r13d, %edi
	movq	%r12, %rsi
	callq	_writel
	jmp	LBB0_16
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_16:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RZN1_FUNC_MDIO0_HIGHZ,4,2      ## @RZN1_FUNC_MDIO0_HIGHZ
	.comm	_RZN1_FUNC_MDIO1_E1_SWITCH,4,2  ## @RZN1_FUNC_MDIO1_E1_SWITCH
	.comm	_RZN1_FUNC_MDIO1_HIGHZ,4,2      ## @RZN1_FUNC_MDIO1_HIGHZ
	.comm	_RZN1_FUNC_MDIO0_SWITCH,4,2     ## @RZN1_FUNC_MDIO0_SWITCH
	.comm	_RZN1_FUNC_ETH_MDIO,4,2         ## @RZN1_FUNC_ETH_MDIO
	.comm	_RZN1_FUNC_MDIO0_E1_SWITCH,4,2  ## @RZN1_FUNC_MDIO0_E1_SWITCH
	.comm	_RZN1_FUNC_MDIO0_E1_HIGHZ,4,2   ## @RZN1_FUNC_MDIO0_E1_HIGHZ
	.comm	_RZN1_FUNC_ETH_MDIO_E1,4,2      ## @RZN1_FUNC_ETH_MDIO_E1
	.comm	_RZN1_FUNC_MDIO1_SWITCH,4,2     ## @RZN1_FUNC_MDIO1_SWITCH
	.comm	_RZN1_FUNC_MDIO1_E1_HIGHZ,4,2   ## @RZN1_FUNC_MDIO1_E1_HIGHZ
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting func for pin %u to %u\n"

	.comm	_RZN1_L1_FUNC_MASK,4,2          ## @RZN1_L1_FUNC_MASK
	.comm	_RZN1_L1_FUNCTION,4,2           ## @RZN1_L1_FUNCTION
	.comm	_RZN1_FUNC_L2_OFFSET,4,2        ## @RZN1_FUNC_L2_OFFSET
	.comm	_RZN1_L1_FUNCTION_L2,4,2        ## @RZN1_L1_FUNCTION_L2
	.no_dead_strip	_rzn1_set_hw_pin_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rzn1_set_hw_pin_func
_rzn1_set_hw_pin_func:                  ; @rzn1_set_hw_pin_func
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _RZN1_FUNC_MDIO0_HIGHZ@GOTPAGE
Lloh1:
	ldr	x22, [x22, _RZN1_FUNC_MDIO0_HIGHZ@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x9, _RZN1_FUNC_MDIO1_E1_SWITCH@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RZN1_FUNC_MDIO1_E1_SWITCH@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w2
	ccmp	w9, w2, #8, le
	b.lt	LBB0_7
; %bb.1:
Lloh5:
	adrp	x9, _RZN1_FUNC_MDIO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:
	adrp	x9, _RZN1_FUNC_MDIO0_E1_HIGHZ@GOTPAGE
Lloh25:
	ldr	x9, [x9, _RZN1_FUNC_MDIO0_E1_HIGHZ@GOTPAGEOFF]
	mov	x8, x10
LBB0_6:
	ldr	w9, [x9]
	sub	w2, w20, w9
	ldr	w20, [x8]
	mov	x0, x19
	bl	_rzn1_pinctrl_mdio_select
LBB0_7:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	bl	_ARRAY_SIZE
	ldr	w8, [x22]
	cmp	w0, w21
	ccmp	w20, w8, #0, hi
	b.lt	LBB0_9
; %bb.8:
Lloh26:
	adrp	x8, _EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_9:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	w9, w21
	lsl	x24, x9, #2
	add	x0, x8, x24
	bl	_readl
	mov	x22, x0
	ldr	x8, [x19]
	ldr	x8, [x8]
	add	x0, x8, x24
	bl	_readl
	mov	x23, x0
	ldr	w0, [x19, #16]
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	bl	_dev_dbg
Lloh31:
	adrp	x8, _RZN1_L1_FUNC_MASK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _RZN1_L1_FUNC_MASK@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _RZN1_L1_FUNCTION@GOTPAGE
Lloh35:
	ldr	x9, [x9, _RZN1_L1_FUNCTION@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh37:
	adrp	x10, _RZN1_FUNC_L2_OFFSET@GOTPAGE
Lloh38:
	ldr	x10, [x10, _RZN1_FUNC_L2_OFFSET@GOTPAGEOFF]
	bic	w8, w22, w8
Lloh39:
	ldr	w10, [x10]
Lloh40:
	adrp	x11, _RZN1_L1_FUNCTION_L2@GOTPAGE
Lloh41:
	ldr	x11, [x11, _RZN1_L1_FUNCTION_L2@GOTPAGEOFF]
Lloh42:
	ldr	w11, [x11]
	subs	w10, w20, w10
	csel	w11, w20, w11, lt
	csel	w20, w23, w10, lt
	lsl	w9, w11, w9
	orr	w0, w9, w8
	cmp	w0, w22
	ccmp	w20, w23, #0, eq
	b.eq	LBB0_11
; %bb.10:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	add	x1, x8, x24
	bl	_writel
	ldr	x8, [x19]
	ldr	x8, [x8]
	add	x1, x8, x24
	mov	x0, x20
	bl	_writel
LBB0_11:
	mov	w0, #0
LBB0_12:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_RZN1_FUNC_MDIO0_HIGHZ,4,2      ; @RZN1_FUNC_MDIO0_HIGHZ
	.comm	_RZN1_FUNC_MDIO1_E1_SWITCH,4,2  ; @RZN1_FUNC_MDIO1_E1_SWITCH
	.comm	_RZN1_FUNC_MDIO1_HIGHZ,4,2      ; @RZN1_FUNC_MDIO1_HIGHZ
	.comm	_RZN1_FUNC_MDIO0_SWITCH,4,2     ; @RZN1_FUNC_MDIO0_SWITCH
	.comm	_RZN1_FUNC_ETH_MDIO,4,2         ; @RZN1_FUNC_ETH_MDIO
	.comm	_RZN1_FUNC_MDIO0_E1_SWITCH,4,2  ; @RZN1_FUNC_MDIO0_E1_SWITCH
	.comm	_RZN1_FUNC_MDIO0_E1_HIGHZ,4,2   ; @RZN1_FUNC_MDIO0_E1_HIGHZ
	.comm	_RZN1_FUNC_ETH_MDIO_E1,4,2      ; @RZN1_FUNC_ETH_MDIO_E1
	.comm	_RZN1_FUNC_MDIO1_SWITCH,4,2     ; @RZN1_FUNC_MDIO1_SWITCH
	.comm	_RZN1_FUNC_MDIO1_E1_HIGHZ,4,2   ; @RZN1_FUNC_MDIO1_E1_HIGHZ
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting func for pin %u to %u\n"

	.comm	_RZN1_L1_FUNC_MASK,4,2          ; @RZN1_L1_FUNC_MASK
	.comm	_RZN1_L1_FUNCTION,4,2           ; @RZN1_L1_FUNCTION
	.comm	_RZN1_FUNC_L2_OFFSET,4,2        ; @RZN1_FUNC_L2_OFFSET
	.comm	_RZN1_L1_FUNCTION_L2,4,2        ; @RZN1_L1_FUNCTION_L2
	.no_dead_strip	_rzn1_set_hw_pin_func
.subsections_via_symbols
