	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm281xx_hdmi_pin_update
_bcm281xx_hdmi_pin_update:              ## @bcm281xx_hdmi_pin_update
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -88(%rbp)                  ## 8-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r14d
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_pinctrl_dev_get_drvdata
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.1:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	setle	%al
	movq	_INPUT_DIS@GOTPCREL(%rip), %r15
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movzbl	%al, %r14d
	movq	_HDMI@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	(%r15), %esi
	callq	_BCM281XX_PIN_SHIFT
	movl	%eax, %ebx
	movl	(%r12), %edi
	movl	(%r15), %esi
	callq	_BCM281XX_PIN_MASK
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	callq	_bcm281xx_pin_update
	incq	%r13
	cmpq	%r13, -72(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx,%r13,8), %rdi
	callq	_pinconf_to_config_param
	movl	%eax, %r14d
	movq	(%rbx,%r13,8), %rdi
	callq	_pinconf_to_config_argument
	cmpl	$129, %r14d
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$128, %r14d
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	setg	%al
	movq	_MODE@GOTPCREL(%rip), %r15
	jmp	LBB0_7
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_5:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%r8d, %ecx
	movl	(%rax,%rcx,4), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI,4,2                       ## @HDMI
	.comm	_MODE,4,2                       ## @MODE
	.comm	_INPUT_DIS,4,2                  ## @INPUT_DIS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unrecognized pin config %d for pin %s (%d).\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_bcm281xx_hdmi_pin_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm281xx_hdmi_pin_update
_bcm281xx_hdmi_pin_update:              ; @bcm281xx_hdmi_pin_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x5
	mov	x21, x4
	mov	x25, x3
	mov	x23, x2
	mov	x19, x1
	mov	x22, x0
	bl	_pinctrl_dev_get_drvdata
	cbz	w25, LBB0_7
; %bb.1:
	stp	x0, x22, [sp, #8]               ; 16-byte Folded Spill
	str	w19, [sp, #28]                  ; 4-byte Folded Spill
	mov	w27, w25
Lloh0:
	adrp	x22, _INPUT_DIS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _INPUT_DIS@GOTPAGEOFF]
Lloh2:
	adrp	x24, _HDMI@GOTPAGE
Lloh3:
	ldr	x24, [x24, _HDMI@GOTPAGEOFF]
Lloh4:
	adrp	x19, _MODE@GOTPAGE
Lloh5:
	ldr	x19, [x19, _MODE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #1
	cset	w25, lt
	mov	x28, x22
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x24]
	ldr	w1, [x28]
	bl	_BCM281XX_PIN_SHIFT
	mov	x26, x0
	ldr	w0, [x24]
	ldr	w1, [x28]
	bl	_BCM281XX_PIN_MASK
	mov	x4, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x25
	mov	x3, x26
	bl	_bcm281xx_pin_update
	add	x23, x23, #8
	subs	x27, x27, #1
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	bl	_pinconf_to_config_param
	mov	x25, x0
	ldr	x0, [x23]
	bl	_pinconf_to_config_argument
	cmp	w25, #129
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w25, #128
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #0
	cset	w25, gt
	mov	x28, x19
	b	LBB0_3
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w0, [x8]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldr	w4, [sp, #28]                   ; 4-byte Folded Reload
	ldr	w3, [x8, w4, uxtw #2]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x25
	bl	_dev_err
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI,4,2                       ; @HDMI
	.comm	_MODE,4,2                       ; @MODE
	.comm	_INPUT_DIS,4,2                  ; @INPUT_DIS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unrecognized pin config %d for pin %s (%d).\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_bcm281xx_hdmi_pin_update
.subsections_via_symbols
