	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xway_mux_apply
_xway_mux_apply:                        ## @xway_mux_apply
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r13
	movl	%ebx, %edi
	callq	_PORT
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_GPIO_ALT1
	movq	_PORT3@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r15d
	jne	LBB0_2
## %bb.1:
	movq	_GPIO3_ALT1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_MUX_ALT0@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	andl	%r14d, %r12d
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	(%r13), %rax
	movl	(%rax), %r13d
	movl	%ebx, %edi
	callq	_GPIO_ALT0
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_PORT_PIN
	movl	%r13d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.3:
	callq	_gpio_setbit
	jmp	LBB0_5
LBB0_4:
	callq	_gpio_clearbit
LBB0_5:
	movq	_MUX_ALT1@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %r15d
	movl	%ebx, %edi
	callq	_PORT_PIN
	movl	%r15d, %edi
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.6:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_gpio_setbit
	jmp	LBB0_8
LBB0_7:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_gpio_clearbit
LBB0_8:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT3,4,2                      ## @PORT3
	.comm	_GPIO3_ALT1,4,2                 ## @GPIO3_ALT1
	.comm	_MUX_ALT0,4,2                   ## @MUX_ALT0
	.comm	_MUX_ALT1,4,2                   ## @MUX_ALT1
	.no_dead_strip	_xway_mux_apply
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xway_mux_apply
_xway_mux_apply:                        ; @xway_mux_apply
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x19, x1
	bl	_pinctrl_dev_get_drvdata
	mov	x22, x0
	mov	x0, x19
	bl	_PORT
	mov	x21, x0
	mov	x0, x19
	bl	_GPIO_ALT1
Lloh0:
	adrp	x8, _PORT3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PORT3@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _GPIO3_ALT1@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GPIO3_ALT1@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w21, w8
	csel	w21, w9, w0, eq
Lloh6:
	adrp	x8, _MUX_ALT0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MUX_ALT0@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w25, w8, w20
	ldr	x8, [x22]
	ldr	w23, [x8]
	mov	x0, x19
	bl	_GPIO_ALT0
	mov	x24, x0
	mov	x0, x19
	bl	_PORT_PIN
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	cbz	w25, LBB0_2
; %bb.1:
	bl	_gpio_setbit
	b	LBB0_3
LBB0_2:
	bl	_gpio_clearbit
LBB0_3:
Lloh9:
	adrp	x8, _MUX_ALT1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MUX_ALT1@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w23, w8, w20
	ldr	x8, [x22]
	ldr	w20, [x8]
	mov	x0, x19
	bl	_PORT_PIN
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	cbz	w23, LBB0_5
; %bb.4:
	bl	_gpio_setbit
	b	LBB0_6
LBB0_5:
	bl	_gpio_clearbit
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT3,4,2                      ; @PORT3
	.comm	_GPIO3_ALT1,4,2                 ; @GPIO3_ALT1
	.comm	_MUX_ALT0,4,2                   ; @MUX_ALT0
	.comm	_MUX_ALT1,4,2                   ; @MUX_ALT1
	.no_dead_strip	_xway_mux_apply
.subsections_via_symbols
