	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmstb_gpio_of_xlate
_brcmstb_gpio_of_xlate:                 ## @brcmstb_gpio_of_xlate
	.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
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_brcmstb_gpio_gc_to_priv
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_gpiochip_get_data
	cmpl	$2, (%rbx)
	jne	LBB0_1
## %bb.2:
	movq	%rax, %r14
	xorl	%edi, %edi
	cmpl	$2, (%r15)
	setl	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rax
	movl	(%r12), %r13d
	subl	4(%rbx), %r13d
	addl	(%rax), %r13d
	cmpl	8(%rbx), %r13d
	jge	LBB0_3
## %bb.5:
	testl	%r13d, %r13d
	js	LBB0_3
## %bb.6:
	xorl	%edi, %edi
	cmpl	(%r14), %r13d
	setge	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	8(%r12), %rdi
	movq	8(%r15), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn_ratelimited
LBB0_8:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.9:
	movq	8(%r15), %rax
	movl	4(%rax), %eax
	movl	%eax, (%rcx)
	jmp	LBB0_10
LBB0_1:
	movl	$1, %edi
	callq	_WARN_ON
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_10:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Received request for invalid GPIO offset %d\n"

	.no_dead_strip	_brcmstb_gpio_of_xlate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmstb_gpio_of_xlate
_brcmstb_gpio_of_xlate:                 ; @brcmstb_gpio_of_xlate
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_brcmstb_gpio_gc_to_priv
	mov	x22, x0
	mov	x0, x21
	bl	_gpiochip_get_data
	ldr	w8, [x21]
	cmp	w8, #2
	b.ne	LBB0_8
; %bb.1:
	mov	x23, x0
	ldr	w8, [x20]
	cmp	w8, #2
	cset	w0, lt
	bl	_WARN_ON
	cbnz	x0, LBB0_9
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	ldr	w9, [x22]
	ldp	w10, w11, [x21, #4]
	sub	w9, w9, w10
	add	w21, w9, w8
	cmp	w21, w11
	b.ge	LBB0_9
; %bb.3:
	tbnz	w21, #31, LBB0_9
; %bb.4:
	ldr	w8, [x23]
	cmp	w21, w8
	cset	w0, ge
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x0, [x22, #8]
	ldr	x8, [x20, #8]
	ldr	w2, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn_ratelimited
LBB0_6:
	cbz	x19, LBB0_10
; %bb.7:
	ldr	x8, [x20, #8]
	ldr	w8, [x8, #4]
	str	w8, [x19]
	b	LBB0_10
LBB0_8:
	mov	w0, #1
	bl	_WARN_ON
LBB0_9:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_10:
	mov	x0, x21
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Received request for invalid GPIO offset %d\n"

	.no_dead_strip	_brcmstb_gpio_of_xlate
.subsections_via_symbols
