	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bd70528_gpio_set
_bd70528_gpio_set:                      ## @bd70528_gpio_set
	.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, %r14d
	movl	%esi, %r15d
	callq	_gpiochip_get_data
	movq	%rax, %r12
	testl	%r14d, %r14d
	jne	LBB0_1
## %bb.2:
	movq	_BD70528_GPIO_OUT_LO@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_BD70528_GPIO_OUT_HI@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r13d
	movl	4(%r12), %ebx
	movl	%r15d, %edi
	callq	_GPIO_OUT_REG
	movq	_BD70528_GPIO_OUT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	%r13d, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BD70528_GPIO_OUT_HI,4,2        ## @BD70528_GPIO_OUT_HI
	.comm	_BD70528_GPIO_OUT_LO,4,2        ## @BD70528_GPIO_OUT_LO
	.comm	_BD70528_GPIO_OUT_MASK,4,2      ## @BD70528_GPIO_OUT_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not set gpio to %d\n"

	.no_dead_strip	_bd70528_gpio_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bd70528_gpio_set
_bd70528_gpio_set:                      ; @bd70528_gpio_set
	.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	x21, x1
	bl	_gpiochip_get_data
	mov	x20, x0
Lloh0:
	adrp	x8, _BD70528_GPIO_OUT_HI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BD70528_GPIO_OUT_HI@GOTPAGEOFF]
Lloh2:
	adrp	x9, _BD70528_GPIO_OUT_LO@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BD70528_GPIO_OUT_LO@GOTPAGEOFF]
	cmp	w19, #0
	csel	x8, x9, x8, eq
	ldr	w22, [x8]
	ldr	w23, [x0, #4]
	mov	x0, x21
	bl	_GPIO_OUT_REG
	mov	x1, x0
Lloh4:
	adrp	x8, _BD70528_GPIO_OUT_MASK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BD70528_GPIO_OUT_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x3, x22
	bl	_regmap_update_bits
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x20]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	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
	b	_dev_err
LBB0_2:
	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	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BD70528_GPIO_OUT_HI,4,2        ; @BD70528_GPIO_OUT_HI
	.comm	_BD70528_GPIO_OUT_LO,4,2        ; @BD70528_GPIO_OUT_LO
	.comm	_BD70528_GPIO_OUT_MASK,4,2      ; @BD70528_GPIO_OUT_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not set gpio to %d\n"

	.no_dead_strip	_bd70528_gpio_set
.subsections_via_symbols
