	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_dw_configure_master
_i2c_dw_configure_master:               ## @i2c_dw_configure_master
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_I2C_FUNC_10BIT_ADDR@GOTPCREL(%rip), %rax
	movq	_DW_IC_DEFAULT_FUNCTIONALITY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rdi)
	movq	_DW_IC_CON_MASTER@GOTPCREL(%rip), %rcx
	movq	_DW_IC_CON_SLAVE_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_DW_IC_CON_RESTART_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_DW_IC_MASTER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rdi)
	movl	12(%rdi), %edx
	cmpl	$3400000, %edx                  ## imm = 0x33E140
	jne	LBB0_1
## %bb.2:
	movq	_DW_IC_CON_SPEED_HIGH@GOTPCREL(%rip), %rcx
	cmpl	$100000, %edx                   ## imm = 0x186A0
	je	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_DW_IC_CON_SPEED_FAST@GOTPCREL(%rip), %rcx
	cmpl	$100000, %edx                   ## imm = 0x186A0
	jne	LBB0_5
LBB0_4:
	movq	_DW_IC_CON_SPEED_STD@GOTPCREL(%rip), %rcx
LBB0_5:
	orl	(%rcx), %eax
	movl	%eax, 4(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_10BIT_ADDR,4,2        ## @I2C_FUNC_10BIT_ADDR
	.comm	_DW_IC_DEFAULT_FUNCTIONALITY,4,2 ## @DW_IC_DEFAULT_FUNCTIONALITY
	.comm	_DW_IC_CON_MASTER,4,2           ## @DW_IC_CON_MASTER
	.comm	_DW_IC_CON_SLAVE_DISABLE,4,2    ## @DW_IC_CON_SLAVE_DISABLE
	.comm	_DW_IC_CON_RESTART_EN,4,2       ## @DW_IC_CON_RESTART_EN
	.comm	_DW_IC_MASTER,4,2               ## @DW_IC_MASTER
	.comm	_DW_IC_CON_SPEED_STD,4,2        ## @DW_IC_CON_SPEED_STD
	.comm	_DW_IC_CON_SPEED_HIGH,4,2       ## @DW_IC_CON_SPEED_HIGH
	.comm	_DW_IC_CON_SPEED_FAST,4,2       ## @DW_IC_CON_SPEED_FAST
	.no_dead_strip	_i2c_dw_configure_master
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_dw_configure_master
_i2c_dw_configure_master:               ; @i2c_dw_configure_master
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _I2C_FUNC_10BIT_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_10BIT_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DW_IC_DEFAULT_FUNCTIONALITY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DW_IC_DEFAULT_FUNCTIONALITY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _DW_IC_CON_MASTER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DW_IC_CON_MASTER@GOTPAGEOFF]
	str	w8, [x0]
Lloh8:
	ldr	w8, [x9]
Lloh9:
	adrp	x9, _DW_IC_CON_SLAVE_DISABLE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DW_IC_CON_SLAVE_DISABLE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _DW_IC_CON_RESTART_EN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DW_IC_CON_RESTART_EN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _DW_IC_MASTER@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DW_IC_MASTER@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	str	w9, [x0, #8]
Lloh18:
	adrp	x9, _DW_IC_CON_SPEED_STD@GOTPAGE
Lloh19:
	ldr	x9, [x9, _DW_IC_CON_SPEED_STD@GOTPAGEOFF]
Lloh20:
	adrp	x10, _DW_IC_CON_SPEED_HIGH@GOTPAGE
Lloh21:
	ldr	x10, [x10, _DW_IC_CON_SPEED_HIGH@GOTPAGEOFF]
	ldr	w11, [x0, #12]
Lloh22:
	adrp	x12, _DW_IC_CON_SPEED_FAST@GOTPAGE
Lloh23:
	ldr	x12, [x12, _DW_IC_CON_SPEED_FAST@GOTPAGEOFF]
	sub	w13, w11, #830, lsl #12         ; =3399680
	cmp	w13, #320
	csel	x10, x10, x12, eq
	sub	w11, w11, #24, lsl #12          ; =98304
	cmp	w11, #1696
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x0, #4]
	ret
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_10BIT_ADDR,4,2        ; @I2C_FUNC_10BIT_ADDR
	.comm	_DW_IC_DEFAULT_FUNCTIONALITY,4,2 ; @DW_IC_DEFAULT_FUNCTIONALITY
	.comm	_DW_IC_CON_MASTER,4,2           ; @DW_IC_CON_MASTER
	.comm	_DW_IC_CON_SLAVE_DISABLE,4,2    ; @DW_IC_CON_SLAVE_DISABLE
	.comm	_DW_IC_CON_RESTART_EN,4,2       ; @DW_IC_CON_RESTART_EN
	.comm	_DW_IC_MASTER,4,2               ; @DW_IC_MASTER
	.comm	_DW_IC_CON_SPEED_STD,4,2        ; @DW_IC_CON_SPEED_STD
	.comm	_DW_IC_CON_SPEED_HIGH,4,2       ; @DW_IC_CON_SPEED_HIGH
	.comm	_DW_IC_CON_SPEED_FAST,4,2       ; @DW_IC_CON_SPEED_FAST
	.no_dead_strip	_i2c_dw_configure_master
.subsections_via_symbols
