	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ina219_set_vbus_range_denom
_ina219_set_vbus_range_denom:           ## @ina219_set_vbus_range_denom
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movl	$32, %ecx
	cmpl	$1, %esi
	je	LBB0_3
## %bb.1:
	movl	$16, %ecx
	cmpl	$2, %esi
	jne	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	cmpl	$1, %esi
	sete	%al
	movl	%ecx, (%rdi)
	movq	_INA219_BRNG_MASK@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	notl	%ecx
	andl	%ecx, (%rbx)
	movl	%eax, %edi
	callq	_INA219_SHIFT_BRNG
	andl	(%r14), %eax
	orl	%eax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_INA219_BRNG_MASK,4,2           ## @INA219_BRNG_MASK
	.no_dead_strip	_ina219_set_vbus_range_denom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ina219_set_vbus_range_denom
_ina219_set_vbus_range_denom:           ; @ina219_set_vbus_range_denom
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	cmp	w1, #1
	b.ne	LBB0_2
; %bb.1:
	mov	w9, #32
	b	LBB0_4
LBB0_2:
	cmp	w1, #2
	b.ne	LBB0_5
; %bb.3:
	mov	w9, #16
LBB0_4:
	cmp	w1, #1
	cset	w8, eq
	str	w9, [x0]
Lloh0:
	adrp	x20, _INA219_BRNG_MASK@GOTPAGE
Lloh1:
	ldr	x20, [x20, _INA219_BRNG_MASK@GOTPAGEOFF]
	ldr	w9, [x20]
	ldr	w10, [x19]
	bic	w9, w10, w9
	str	w9, [x19]
	mov	x0, x8
	bl	_INA219_SHIFT_BRNG
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [x20]
	and	w8, w9, w8
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_INA219_BRNG_MASK,4,2           ; @INA219_BRNG_MASK
	.no_dead_strip	_ina219_set_vbus_range_denom
.subsections_via_symbols
