	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipmi_addr_length               ## -- Begin function ipmi_addr_length
	.p2align	4, 0x90
_ipmi_addr_length:                      ## @ipmi_addr_length
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_IPMI_SYSTEM_INTERFACE_ADDR_TYPE@GOTPCREL(%rip), %rcx
	movl	$4, %eax
	cmpl	%edi, (%rcx)
	je	LBB0_4
## %bb.1:
	movq	_IPMI_IPMB_ADDR_TYPE@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	je	LBB0_4
## %bb.2:
	movq	_IPMI_IPMB_BROADCAST_ADDR_TYPE@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_IPMI_LAN_ADDR_TYPE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	%edi, (%rcx)
	sete	%al
	shll	$2, %eax
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPMI_SYSTEM_INTERFACE_ADDR_TYPE,4,2 ## @IPMI_SYSTEM_INTERFACE_ADDR_TYPE
	.comm	_IPMI_IPMB_ADDR_TYPE,4,2        ## @IPMI_IPMB_ADDR_TYPE
	.comm	_IPMI_IPMB_BROADCAST_ADDR_TYPE,4,2 ## @IPMI_IPMB_BROADCAST_ADDR_TYPE
	.comm	_IPMI_LAN_ADDR_TYPE,4,2         ## @IPMI_LAN_ADDR_TYPE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipmi_addr_length               ; -- Begin function ipmi_addr_length
	.p2align	2
_ipmi_addr_length:                      ; @ipmi_addr_length
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _IPMI_SYSTEM_INTERFACE_ADDR_TYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPMI_SYSTEM_INTERFACE_ADDR_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #4
	ret
LBB0_2:
Lloh3:
	adrp	x8, _IPMI_IPMB_ADDR_TYPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPMI_IPMB_ADDR_TYPE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _IPMI_IPMB_BROADCAST_ADDR_TYPE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IPMI_IPMB_BROADCAST_ADDR_TYPE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w0
	ccmp	w9, w0, #4, ne
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #4
	ret
LBB0_4:
Lloh9:
	adrp	x8, _IPMI_LAN_ADDR_TYPE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IPMI_LAN_ADDR_TYPE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w0
	cset	w8, eq
	lsl	w0, w8, #2
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IPMI_SYSTEM_INTERFACE_ADDR_TYPE,4,2 ; @IPMI_SYSTEM_INTERFACE_ADDR_TYPE
	.comm	_IPMI_IPMB_ADDR_TYPE,4,2        ; @IPMI_IPMB_ADDR_TYPE
	.comm	_IPMI_IPMB_BROADCAST_ADDR_TYPE,4,2 ; @IPMI_IPMB_BROADCAST_ADDR_TYPE
	.comm	_IPMI_LAN_ADDR_TYPE,4,2         ; @IPMI_LAN_ADDR_TYPE
.subsections_via_symbols
